F
Filamentβ€’12mo ago
Chriis

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

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