Skip to content

LVN command - set_attribute, remove_attribute, & toggle_attribute #217

@bcardarella

Description

@bcardarella

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestparityUsed to note places where LVN is trying to achieve parity with vanilla live view.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions