Sairahcaz2k
How to "inject" custom javascript when clicking on a wizard step
Hi folks,
filament newbie here 😄
I load a google map in one of my form wizard steps.
When I go to the next step and then want to go back, I want to re-initialize the map.
How can I do that? Is it somehow possible to add some custom js to a step wizard click?
Any help is highly appreciated!
3 replies
Is it possible to bind a json column or maybe multiple columns to one custom field?
Hey folks,
filament noob here...
I have a custom field, for instance:
ColorPicker::make('colors')
if I provide json/array (casted in the model) it doesn't work:
<div x-data="{ state: $wire.$entangle('{{ $getStatePath() }}') }">
<input type="color" x-model="state.color1">
<input type="color" x-model="state.color2">
</div>
But if colors is just a string it works:
<div x-data="{ state: $wire.$entangle('{{ $getStatePath() }}') }">
<input type="color" x-model="state">
</div>
Or is there maybe a way to bind multiple columns to a single component?, this would also help.
Maybe something like this?:
CustomField::make('foo', 'bar')
Any references, where I can learn more about this are highly appreciated!
Thanks!
6 replies