-
Notifications
You must be signed in to change notification settings - Fork 1
Section field
Loïc Antignac edited this page May 28, 2022
·
1 revision
The section field is simply used to group other fields.
The component used to group fields is the Panel component
The declaration of this field is quite simple:
[
'slug' => 'wax_company_settings_information',
'type' => 'section',
'labels' => [
'label' => 'information_label',
'help' => '',
],
'children' => [
[
'slug' => 'wax_company_settings_company_name',
'type' => 'text',
'labels' => [
'label' => 'company_name_label',
'help' => 'company_name_help',
],
],
[
'slug' => 'wax_company_settings_company_addr',
'type' => 'text',
'args' => [
'required' => false,
],
'labels' => [
'label' => 'company_adr1_label',
'help' => 'company_adr1_help',
],
],
],
],
The labels
key contains the keys for retrieving the labels from the labels
array as for every field.