Implement `toggle_attribute` action
marcoroth opened this issue · 0 comments
marcoroth commented
Action signature:
turbo_stream.toggle_attribute(targets, attribute, **attributes)
Example Turbo Stream Element:
<turbo-stream action="toggle_attribute" targets=".items" attribute="disabled"></turbo-stream>
Action content:
target.toggleAttribute(attribute)
Reference: