Retrieves the current node
Adds data as a child to the current node. if makeLord is true then the given subject becomes the new current node
the element you want to add
if true, sets the given subject as lord (current node) and subsequent calls to addSubject will be assigned to this current subject
Removes the {Subject} at the specified index. Returns false on failure.
index of the {Subject} you want to remove
Removes all the children of the current node.
returns the DOM structure starting at the root node. If startAtCurrent is true then generates the DOM from the current node instead.
only renders from the current node down
returns the DOM
returns the virtual dom as a string. It will not include functions or complex structures not supported by JSON.stringify and JSON.parse
stringify version of the virtual DOM
Removes all the nodes and internally resets the current node to point to the root.
Internally moves the current node up one level. If the node is the parent then it does nothing
Internally changes the current node to the root node
Internally changes the current node to the child at the given index. The current node remains the same on failure
index of the subject you want to make current node
Generated using TypeDoc
Create an empty kingdom. If data is supplied then it is made the root node.