Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
html-custom-elements
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JadeProListening
html-custom-elements
Commits
4a11d34f
Commit
4a11d34f
authored
Sep 21, 2016
by
Stephanus Volke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge tutorial into api doc
parent
0ef93096
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
38 deletions
+0
-38
html-custom-element.md
tutorial/html-custom-element.md
+0
-32
installation.md
tutorial/installation.md
+0
-1
tutorial.json
tutorial/tutorial.json
+0
-5
No files found.
tutorial/html-custom-element.md
deleted
100644 → 0
View file @
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
aviable.
**Parameters**
-
id {string}: id of the requested element
**Return**
-
{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.
**Parameters**
-
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
registered
tutorial/installation.md
deleted
100644 → 0
View file @
0ef93096
# Installation
tutorial/tutorial.json
deleted
100644 → 0
View file @
0ef93096
{
"installation"
:
{
"title"
:
"Installation"
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment