NJT.Element
Description
The aim of the element module is to simplify creating HTML elements. This is used by the form builder module.
This demo has two trees of elements which are coverted into HTML to be placed below. The first is a JSON string and the second is a Javascript object.
Our string element
This is an element built with NJT.Element which has:
- Child elements
- Wrapper element which has child elements (because we can)
Our object element
This time let's do 4 random-ish multiplications
X | Y | X x Y = |
---|---|---|
3 | 17 | 51 |
19 | 19 | 361 |
20 | 18 | 360 |
6 | 3 | 18 |
Console
Page is loaded Building our string element Finished building string element Building our object element Finished building object element