Muetze42 / nova-radio-field

A Radio Buttons field for Laravel Nova.
https://novapackages.com/packages/norman-huth/nova-radio-field
MIT License
5 stars 2 forks source link

Idea: Default value #2

Closed Rtsss17 closed 1 year ago

Rtsss17 commented 1 year ago

Hi is possible to make the default option like the old package for Nova 3?

Example:

Radio::make(__('Radio'), 'select')
    ->options([
        'S' => __('Small'),
        'M' => __('Medium'),
        'L' => __('Large'),
    ])
    ->default('L')

Thank you for this package!

Muetze42 commented 1 year ago

There is an update planned this week. I'll include it right away, of course.

Muetze42 commented 1 year ago

The release is out. Now the default method is processed.

https://github.com/Muetze42/nova-radio-field#default-value

https://github.com/Muetze42/nova-radio-field/releases