F
Filamentβ€’14mo ago
Chriis

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

Everything is in the title πŸ™‚
8 Replies
Saade
Saadeβ€’14mo ago
getActions is deprecated, you should use getHeaderActions.
Chriis
ChriisOPβ€’14mo ago
Ah, ok thx. I've seen it in a package and was wondering why Filament use getHeaderActions by default πŸ™‚
Saade
Saadeβ€’14mo ago
getHeaderActions calls getActions internally for backwards compatibility if you're still using getActions instead of getHeaderActions
Chriis
ChriisOPβ€’14mo 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β€’14mo ago
->default('value'), have you tried it?
Saade
Saadeβ€’14mo 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
ChriisOPβ€’14mo 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β€’14mo ago
maybe just add a preferred default value and then go from there?

Did you find this page helpful?