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

XYX x Y =
31751
1919361
2018360
6318

Console

Page is loaded
Building our string element
Finished building string element
Building our object element
Finished building object element