Wizard Steps and Javascript
Probably more a livewire question, but Im using Adams table repeater and wanting to do some row highlighting, so I am doing , which works great for the first step, and clickable works on all steps of the wizard. I have two problems though. Its highlight state is lost if there is a validation fail on the form and any additional steps, the init state doesnt seem to apply. Any suggestions? Its a pretty long form and this highlighting really helps seeing which items still need action take before getting to the validation point. Its not a show stopper, but would love to figure this out.
4 Replies
Shesh, why not just target the repeater and nth-child the classes with custom CSS?
care to elaborate a bit more on this idea considering the situation described above?
@toeknee ?
Sorry, the init state will likely be lost since init is triggered after load and last time I checked, not on loading the script. So you’d likely need the function set before the load always as it’s JS.
Haven’t tried, but should work in my head. Make the radio live() the add a class based on the state. And in css you could target tr:has(‘.class’)