Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

create shadow root

hostElement.attachShadow({mode:"open"})
//open mode to alow js to acces the shadow dom
hostElement.attachShadow()
//shadow dom can not be accesed with js
 
PREVIOUS NEXT
Tagged: #create #shadow #root
ADD COMMENT
Topic
Name
2+7 =