Document skooma dataset property
This commit is contained in:
parent
b514fa638b
commit
6b1eb69ba6
1 changed files with 11 additions and 0 deletions
|
@ -94,6 +94,17 @@
|
||||||
return button
|
return button
|
||||||
</code-block>
|
</code-block>
|
||||||
|
|
||||||
|
<p>The magic <code>dataset</code> attribute can be used to set values in the object's data-set</p>
|
||||||
|
<p></p>
|
||||||
|
<code-block>
|
||||||
|
return html.div({ dataset: { name: "user" } })
|
||||||
|
</code-block>
|
||||||
|
<code-block>
|
||||||
|
let div = document.createElement("div")
|
||||||
|
div.dataset.name = "user"
|
||||||
|
return div
|
||||||
|
</code-block>
|
||||||
|
|
||||||
<p>Adding a <strong>shadow-root</strong> to the new element can be done with the magic <code>shadowRoot</code> property.</p>
|
<p>Adding a <strong>shadow-root</strong> to the new element can be done with the magic <code>shadowRoot</code> property.</p>
|
||||||
<p></p>
|
<p></p>
|
||||||
<code-block>
|
<code-block>
|
||||||
|
|
Loading…
Reference in a new issue