I want use local storage js in afterStateUpdateJs() filament have defaultJs()

I want use local storage js in afterStateUpdateJs() filament have defaultJs()
5 Replies
Dennis Koch
Dennis Koch3mo ago
No, there's no ->defaultJs(). You might be able to hack something together via the ->extraAttributes(). Or just create a custom component.
Kaesa Lyrih
Kaesa LyrihOP3mo ago
hummm, how to use ->extraAttributes() to add default state using browser local storage? Currently I'm using season() & ->afterStateUpdate()->default(),
Kaesa Lyrih
Kaesa LyrihOP3mo ago
belowContent() can use JS? i want use ->afterStateUpdateJs() counting character input in below content. I didnt want update into server only feature character count.
No description
Dennis Koch
Dennis Koch3mo ago
belowContent() can use JS?
Yes. You can use JsContent
Kaesa Lyrih
Kaesa LyrihOP3mo ago
owh okay i will try. Thanks ❤️ . I hope can fill value input using local storage -_-,

Did you find this page helpful?