F
Filamentβ€’8mo ago
Chriis

What's the differrence between getActions() and getHeaderActions() ?

Everything is in the title πŸ™‚
8 Replies
Saade
Saadeβ€’8mo ago
getActions is deprecated, you should use getHeaderActions.
Chriis
Chriisβ€’8mo ago
Ah, ok thx. I've seen it in a package and was wondering why Filament use getHeaderActions by default πŸ™‚
Saade
Saadeβ€’8mo ago
getHeaderActions calls getActions internally for backwards compatibility if you're still using getActions instead of getHeaderActions
Chriis
Chriisβ€’8mo ago
I have another quick question, if it could avoid me to spam with help topics 😬 I is possible to have a default value for a Select ?
DariusIII
DariusIIIβ€’8mo ago
->default('value'), have you tried it?
Saade
Saadeβ€’8mo ago
using the select blade component? you need to bind it to a x-model or wire:model and give the property a default value
Chriis
Chriisβ€’8mo ago
I just want to have a form select with a value when it is initialized. Like default() but I can"t make it work for a select Yes but I don't really know what to put as a value, my options are gathered with a db query
DariusIII
DariusIIIβ€’8mo ago
maybe just add a preferred default value and then go from there?