Skip to content

Commit

Permalink
Add input_label field to revealer config (#6850)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksleight authored Oct 10, 2022
1 parent c949a05 commit 6aa77ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/lang/en/fieldtypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
'replicator.title' => 'Replicator',
'revealer.title' => 'Revealer',
'revealer.config.mode' => 'Choose your preferred layout style.',
'revealer.config.input_label' => 'Set a label to be shown in the button or beside the toggle.',
'section.title' => 'Section',
'select.config.clearable' => 'Enable to allow deselecting your option.',
'select.config.multiple' => 'Allow multiple selections.',
Expand Down
8 changes: 8 additions & 0 deletions src/Fieldtypes/Revealer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ protected function configFieldItems(): array
'toggle' => __('Toggle'),
],
'default' => 'button',
'width' => 50,
],
'input_label' => [
'display' => __('Input Label'),
'instructions' => __('statamic::fieldtypes.revealer.config.input_label'),
'type' => 'text',
'default' => '',
'width' => 50,
],
];
}
Expand Down

0 comments on commit 6aa77ee

Please sign in to comment.