TIWCGJQTreeViewCRRMPlugin.CreateNode(string,string,string,string,boolean) Method
Creates a new node. Triggers an event.
public procedure CreateNode(ANode: string = 'null'; APosition:string = '0'; AJS: string = ''; ACallback: string = 'false'; ASkipRename: boolean = False);
Parameters
- ANode
- Type: string
This can be a DOM node, jQuery node or selector pointing to the element you want to create in (or next to). If you use the UI plugin - pass null to use the currently selected item.
- APosition
- Type: string
The position of the newly created node. This can be a zero based index to position the element at a specific point among the current children. You can also pass in one of those strings: "before", "after", "inside", "first", "last".
- AJS
- Type: string
The data for the newly created node. Consists of three keys: attr - an object of attributes (same used for jQuery.attr(). You can omit this key; state - a string - either "open" or "closed", for a leaf node - omit this key; data - a string or an object - if a string is passed it is used for the title of the node, if an object is passed there are two keys you can specify: attr and title;
- ACallback
- Type: string
A function to be executed once the node is created. You'd be better off waiting for the event.
- ASkipRename
- Type: boolean
Skips the user input step. The node is created with the data you have supplied.