Flexible Content Settings
As well as fields, Flexible content rows also have settings. These are stored in a separate collection and are displayed by clicking the 'cog' icon on any given flexible row. The purpose of settings is to provide small, uncommon customisations to rows that would otherwise clutter the main set of fields.
Settings are added in a similar way to fields, with their own set of 'Setting' function names (see the HasSettingsFields trait for more details).
FlexibleContentSection::make('wysiwyg')
->addFields([
WysiwygField::make('wysiwyg'),
])
->addSettingsFields([
CheckboxField::make('hidden')
->setLabel('This is the label'),
]),
Default settings
By default, rows are given two settings; row_label and row_id. These should generally be left in as they can be used by Yadda\Enso\Crud\Handlers\FlexibleField::extractNavItems to create sub menus for flexible content.