Skip to content

Commit

Permalink
Update Toggle.php
Browse files Browse the repository at this point in the history
New config field to supplement `inline_label`, when value is true.
  • Loading branch information
caseydwyer committed Oct 6, 2023
1 parent 590d9d8 commit bc2abb9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Fieldtypes/Toggle.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ protected function configFieldItems(): array
'type' => 'text',
'default' => '',
],
'inline_label_when_true' => [
'display' => __('Inline Label when True'),
'instructions' => __('statamic::fieldtypes.toggle.config.inline_label_when_true'),
'type' => 'text',
'default' => '',
],
'default' => [
'display' => __('Default Value'),
'instructions' => __('statamic::messages.fields_default_instructions'),
Expand Down

0 comments on commit bc2abb9

Please sign in to comment.