You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: API.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
| Method | Description |
6
6
| :--- | :--- |
7
-
|`add(Class, Object)`| Register a class as a new custom-tag and provide optional options for it. |
7
+
|`add(Class, Object)`| Register a class as a new custom-tag and provide options for it. |
8
8
|`escape(String)`| Escapes HTML characters from a string (based on [he][3]). |
9
9
|`sanitize(Object)`| Escapes all the strings found in an object literal. |
10
10
|`match(Node, Selector)`| Match the given node against a selector or any matching parent of the given node. This is useful when trying to locate a node from the actual node that was interacted with. |
@@ -17,10 +17,16 @@
17
17
|`getProps()`| Get the properties of a component instance. |
18
18
| <code>setState(Object | Function)</code> | Set the state of a component instance. Can also take a function which will receive the current props as an argument. |
19
19
|`stylesheet()`| Returns a string of css to be lazily added to a `style` tag in the head. |
20
-
|`styles()`| Returns an object that represents inline-styles. Styles are applied by adding a keys from the object to the `styles` attribute of an html tag in the render function, for example `styles="key1 key2"`. Each object's key-value pair are added to the element's style object. |
20
+
|`styles()`| Returns an object that represents inline-styles to be applied to the component. Styles are applied by adding a keys from the object to the `styles` attribute of an html tag in the render function, for example `styles="key1 key2"`. Each object's key-value pair are added to the element's style object. |
21
21
|`render()`| Returns HTML to be parsed or a dom node that will overwrite. There is usually no need to call this directly, prefer `componentInstance.reRender({ ... })`. |
22
22
| html\`...\`| Tidy up an HTML string (use as a [tagged template][2]). |
23
23
24
+
## INSTANCE PROPERTIES
25
+
26
+
| Name | Description |
27
+
| :--- | :--- |
28
+
| <code>children</code> | An array of nodes, the original child nodes of the component. |
0 commit comments