Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement toggle_attribute action #54

Open
marcoroth opened this issue Mar 5, 2023 · 0 comments
Open

Implement toggle_attribute action #54

marcoroth opened this issue Mar 5, 2023 · 0 comments
Labels
good first issue Good for newcomers help wanted Good for people who want to contribute to the project new custom action

Comments

@marcoroth
Copy link
Owner

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:

@marcoroth marcoroth added help wanted Good for people who want to contribute to the project good first issue Good for newcomers new custom action labels Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Good for people who want to contribute to the project new custom action
Projects
None yet
Development

No branches or pull requests

1 participant