Implement `toggle_css_class` action
marcoroth opened this issue · 0 comments
marcoroth commented
Action signature:
turbo_stream.toggle_css_class(targets, classes, **attributes)
Example Turbo Stream Element:
<turbo-stream action="toggle_css_class" targets=".items" classes="background-blue background-gray"></turbo-stream>
Action content:
target.classList.toggle(...classes)
Reference: