Skip to content

pass through data-* attributes #9

@GliderGeek

Description

@GliderGeek

currently the components do not allow for extra data-* attributes since they are not defined as explicit attributes. the package itself does use and create data-roos-* attributes.

Adding these attributes can be helpful to identify the element in javascript. More info on mdn: https://developer.mozilla.org/en-US/docs/Web/HTML/How_to/Use_data_attributes

In wies we have used it here to create a date range from two separate date inputs.

proposed fix

allow for all data-* attributes and pass them down to the rendered elements. do not allow for data-roos-* attributes to reserve a namespace we can use internally

open questions

  • how do we treat data-* attributes for combined elements like c-menu?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions