0.1.1 • Published 3 years ago
uce-helpers v0.1.1
µce-helpers
Common helpers for uce related projects, currently used in uce-template:
slot(element):object
to retrieve all nodes with aslot="name"
attribute within an element, ignoring slots inside inner custom elementsref(element):Element?
to retrieve the first element with a specificref="name"
get(element, "attribute-name")
as shortcut forelement.getAttribute(name)
has(element, "attribute-name")
as shortcut forelement.hasAttribute(name)