Constructor
Initialises the instance
Node structure
Optional
extend: false | Record<string, any>[]Extend the base node structure, if false, don't copy the base node structure details
a new instance
Options
public
Length (get)
Returns the number of nodes in the array of options
the number of nodes available as options
length
public
Iterator
Allows the instance to be used as an iterator
Object
[Symbol.iterator]
Clean
Uses the valid method to check which type the value is, and then calls the correct version of clean on that node
Optional
value: anyThe value to clean
Optional
level: string[]the cleaned object values
clean
public
Special
Getter/Setter method for special values associated with nodes that are not fields. To retrieve a value or values, pass only the name or names, to set a single special value, pass a name and value
The name of the value to either set or get
Optional
value: anyThe value to set, must be something that can be converted directly to JSON
mixed | void
special
public
Static
createStatic
registerRegister
Registers the classes that can be children because we can't require them in this file as webpack can't handle file A that requires file B that requires file A
Name / value object of all classes to register, or the name of the constructor that will be added
Optional
constructor: anyThe class to associate with the given name
register
public
Base Node
The base class for most Node types
Name
Base
Access
public