Download the PHP package norman-huth/nova-radio-field without Composer
On this page you can find all versions of the php package norman-huth/nova-radio-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download norman-huth/nova-radio-field
More information about norman-huth/nova-radio-field
Files in norman-huth/nova-radio-field
Package nova-radio-field
Short Description A Laravel Nova Radio field.
License MIT
Informations about the package nova-radio-field
Laravel Nova Radio Buttons Field
A Radio Buttons field for Laravel Nova.
Install
Usage
Advanced Usage
Field Help Text
If you would like to place "help" text beneath a field, you may invoke the
help
method when defining your field:
Help Text For Radio Label
If you would like to place "help" text beneath a radio label, you may invoke the radioHelpTexts
method when defining
your field:
Default Value
By default, this field use the first array item as default. You can set another default value via the default
method,
which accepts a value or
callback.
Inline Radio Boxes
If you would like to place the radios inline instead in columns use the inline
method:
Styling
Controlling Gap
If you would like change the gap between radio buttons use the gap
method:
Default: 1 (0.25rem)
Method | Gap |
---|---|
->gap(0.5) |
0.125rem |
->gap(1.5) |
0.375rem |
->gap(2) |
0.5rem |
->gap(2.5) |
0.625rem |
->gap(3) |
0.75rem |
->gap(3.5) |
0.875rem |
->gap(4) |
1rem |
->gap(5) |
1.25rem |
->gap(6) |
1.5rem |
->gap(8) |
2rem |
Add Classes To Field
You can add classes to the field class attribute by invoking the addClasses method when defining the field:
Set Field Classes
You can remove default field classes and set new classes of the field class attribute by invoking the setClasses method when defining the field:
Add Styles To Field
You can add styles to the field style attribute by invoking the addStyles method when defining the field:
Add Classes To Field Label's
You can add classes to the field label's class attribute by invoking the addClasses method when defining the field:
Add Styles To Field Label's
You can add styles to the field label's style attribute by invoking the addStyles method when defining the field:
Example: Creating Grid Like 3rd Preview
Without Label Like 4th Preview
Add A Title like 4th Preview
Add Classes To Title
Or remove default classes and set own:
Add Styles To Title
Display Keys On Index & Detail Page
If you would like to display the values instead the label, you may invoke the displayUsingValues
method when defining
the field :wink: :