Ajax.Tree The most kick-ass tree class you can’t surpass so don’t blow your gas lest development reach an impasse, not to be crass... | Index
Created by Colin Mollenhour Ajax.Tree is the utility class for Ajax.Tree.Base. Ajax.Tree.Base is designed to be extended using Ajax.Tree.create. Called to build query parameters for the Ajax.Request. The className for the newly created element div and span elements, defaults to the node type Returns a constructor for a new class that is specific to the structure passed. The DOM elements created on instantiation of a new node. Not yet implimented. All flags listed here are accessed by this.<flag> and initialized to the values on the left. Hooks are provided for fine control over interactivity. The insertion function used to handle the node “data”. Called by the constructor after the basic node element has been built. If true, the mark will get the className ‘leaf’ and clicks will not fire a toggleChildren. Called after a node’s children have been cleared. Called on user clicking the mark. Called after all new nodes have been constructed. Called after a node has been disposed. Called immediately after the Ajax.Request is sent. Called after the Ajax.Request onComplete All options are unique per type, and can be accessed inside class functions by “this.options.<option>”. See Ajax.Tree.Options If specified, getContents will be called on clicking the mark. If true, the new element id will be prepended with it’s parent’s id. All properties are accessed by this.<property>. The server response is expected to be in JSON format. Displays an error message. Usage specifications and examples. Use Ajax.Tree.create to create a customized tree class. Use this class as the base for your own customized Ajax.Tree class. |