novadaemon / filament-combobox

Side by side combobox multiselect field to use in the FilamentPHP forms.
https://filamentphp.com/plugins/novadaemon-combobox
MIT License
11 stars 2 forks source link

Default Selected options in Right Side #4

Closed sakthimanikandan845 closed 1 month ago

sakthimanikandan845 commented 1 month ago

Can we set some options as already selected in this field by default on the right side?

novadaemon commented 1 month ago

Shure. That's a great idea.

novadaemon commented 1 month ago

Since Combobox extends the Filament\Forms\Components\Select class, you can use any of the methods available in that class, including the default method: https://filamentphp.com/docs/3.x/forms/fields/getting-started#setting-a-default-value