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

JS command - set_attribute, remove_attribute, & toggle_attribute #217

Open
bcardarella opened this issue Oct 28, 2024 · 0 comments
Open
Labels
enhancement New feature or request parity Used to note places where LVN is trying to achieve parity with vanilla live view.

Comments

@bcardarella
Copy link

bcardarella commented Oct 28, 2024

JS:

set_attribute & remove_attribute
toggle_attribute


Data:

# set_attribute
["set_attr", %{attr: ["aria-expanded", "true"]}]

# remove_attribute
["remove_attr", %{attr: "aria-expanded"}]

# toggle_attribute
["toggle_attr", %{attr: ["open", "true"]}]

Docs:

set_attribute
remove_attribute
toggle_attribute

@mobile-bungalow mobile-bungalow added parity Used to note places where LVN is trying to achieve parity with vanilla live view. enhancement New feature or request labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request parity Used to note places where LVN is trying to achieve parity with vanilla live view.
Projects
None yet
Development

No branches or pull requests

2 participants