Closed atmonshi closed 2 weeks ago
New Method: extraFieldWrapperAttributes, for more fields customization without the need for publishing the views.
extraFieldWrapperAttributes
the new method extraFieldWrapperAttributes will allow to add classes to thefield-wrapper. my use case it to highlight some fields by custom CSS.
field-wrapper
all other extra*Attributes will only applies to the input itself
extra*Attributes
Screenshots:
with extra*Attributes:
with extraFieldWrapperAttributes:
TextInput::make('name') ->extraFieldWrapperAttributes(['class' => 'components-locked'])
composer cs
Please do the same for the infolist entry wrapper, and remove the changes to composer.lock
all done 👍, and revert composer.lock
Thanks!
New Method:
extraFieldWrapperAttributes
, for more fields customization without the need for publishing the views.Description
the new method
extraFieldWrapperAttributes
will allow to add classes to thefield-wrapper
. my use case it to highlight some fields by custom CSS.all other
extra*Attributes
will only applies to the input itselfVisual changes:
Screenshots:
with
extra*Attributes
:with extraFieldWrapperAttributes:
Usage:
Functional changes
composer cs
command.