Commit 4a11d34f authored by Stephanus Volke's avatar Stephanus Volke

merge tutorial into api doc

parent 0ef93096
# HTMLCustomElement
This interface class extends the native `HTMLElement` interface and
provides some additional, often used methods.
## Methods
### waitForElementById(id)
equivalent of native getElementById, but works asynchroneous and
returns a Promise which resolves when the requested element is
- id {string}: id of the requested element
- {Promise<Node>}: resolve contains reference to the requested element
### addAttributeListener(node, attrName, fn, IMT)
Like an event listener but for attributes. It observes an elements
attribute for changes and invokes a pre defined callback function. For
this js MutationObservers are used.
- Node {Node}: reference to the element
- attrName {string}: name of the attribute to observe
- fn {function(node: Node, attrName: string)}: callback function
invoked at attribute change
- IMT {bool}: if `true` fn is executet immediately after listener is
"installation": {
"title": "Installation"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment