can i manipulate another form class like set('...')->extraAttributes(['class'=>'....']) ?
if i could i want to change a bg color
10 Replies
No, you can us e->extraAttributes, so use to to define a custom class and custom css to target the extra class.
ok i should use a custom css class
then how to inject class to another field after state updated
Just add the class with extra attributes?
add attributes when field changed bro
Think it'll take a closure?
so use the closure method
i want change a bg color when data updated like that bro
and adding some animation flashy bg
Make the field live and have the closure on the extraAttrbutes
okk thx u bro