-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Jose Herminio Collas edited this page Feb 1, 2020
·
9 revisions
used for identify the compoenent type
data-component-name="drawer-container"
used to identify the unique instance
data-id={id}
<section
data-component-name="drawer-container" // lower-case dash version of component name
data-id={id}
>
...
</section>
Example DOM query
[...document.querySelectorAll('[data-component-name="drawer-container"] [data-component-name="toggle"]')].map(e => e.click())