JUI(Simple UI & Chart Component)

ui.tree

Hierarchy

core
ui.tree

Requires

ui.tree.base

Files

implements Tree Component

Defined By

Config options

: Boolean
It is possible to drag the movement of a node. ...

It is possible to drag the movement of a node.

Defaults to: false

: Boolean
It is possible to drag the node movement but the node is not changed to a child node of the target node. ...

It is possible to drag the node movement but the node is not changed to a child node of the target node.

Defaults to: true

Defines a DOM event to be used in a UI ...

Defines a DOM event to be used in a UI

Defaults to: {}

: NodeObject
Adds a root node (required). ...

Adds a root node (required).

Defaults to: null

: Boolean
Folds up a root node. ...

Folds up a root node.

Defaults to: false

: Boolean
Hides a root node. ...

Hides a root node.

Defaults to: false

Defines a template markup to be used in a UI ...

Defines a template markup to be used in a UI

Defaults to: {}

Defined By

Methods

( ) : Integer
Gets the index of a node that is activated in an active state. ...

Gets the index of a node that is activated in an active state.

Returns

  • Integer

    index

( name, params )
Check the parameter type of a UI method and generates an alarm when a wrong value is entered ...

Check the parameter type of a UI method and generates an alarm when a wrong value is entered

Parameters

  • name : String

    Method name

  • params : Array

    Parameters

( param1, param2 )
Adds to a child node at a specified index. ...

Adds to a child node at a specified index.

Parameters

  • param1 : Array/String

    index or data

  • param2 : Array

    null or data

( name, callback ) : Mixed
Sets a callback function that is called after a UI method is run ...

Sets a callback function that is called after a UI method is run

Parameters

  • name : String

    Method name

  • callback : Function

Returns

  • Mixed
( name, callback ) : Mixed
Sets a callback function that is called before a UI method is run ...

Sets a callback function that is called before a UI method is run

Parameters

  • name : String

    Method name

  • callback : Function

Returns

  • Mixed
( name, callback )
Sets a callback function and the delay time before/after a UI method is run ...

Sets a callback function and the delay time before/after a UI method is run

Parameters

  • name : String

    Method name

  • callback : Function
Removes all events set in a UI obejct and the DOM element ...

Removes all events set in a UI obejct and the DOM element

( type, args ) : Mixed
Generates a custom event. ...

Generates a custom event. The first parameter is the type of a custom event. A function defined as an option or on method is called

Parameters

  • type : String

    Event type

  • args : Function

    Event Arguments

Returns

  • Mixed
( index )
Folds up a child node at a specified index. ...

Folds up a child node at a specified index.

Parameters

  • index : String
( index )
Folds up all child nodes at a specified index. ...

Folds up all child nodes at a specified index.

Parameters

  • index : String
( index ) : NodeObject
Gets a node at a specified index ...

Gets a node at a specified index

Parameters

  • index : String

Returns

  • NodeObject

    node

( index ) : Array
Gets all nodes at a specified index including child nodes. ...

Gets all nodes at a specified index including child nodes.

Parameters

  • index : String

Returns

  • Array

    nodes

( index, data )
Adds a node at a specified index. ...

Adds a node at a specified index.

Parameters

  • index : String
  • data : Array
( ) : Array
Return all nodes of the root. ...

Return all nodes of the root.

Returns

  • Array

    nodes

( ) : Array
Returns all child nodes. ...

Returns all child nodes.

Returns

  • Array

    nodes

( index ) : Array
Returns all parent nodes at a specified index. ...

Returns all parent nodes at a specified index.

Parameters

  • index : String

Returns

  • Array

    nodes

( index, targetIndex )
Moves a node at a specified index to the target index. ...

Moves a node at a specified index to the target index.

Parameters

  • index : String
  • targetIndex : String
Removes a custom event of an applicable type or callback handler ...

Removes a custom event of an applicable type or callback handler

Parameters

  • type : String

    Event type

( type, callback )
A callback function defined as an on method is run when an emit method is called ...

A callback function defined as an on method is run when an emit method is called

Parameters

  • type : String

    Event type

  • callback : Function
( index )
Shows a child node at a specified index. ...

Shows a child node at a specified index.

Parameters

  • index : String
( index )
Shows all child nodes at a specified index. ...

Shows all child nodes at a specified index.

Parameters

  • index : String
( index )
Deletes a node at a specified index. ...

Deletes a node at a specified index.

Parameters

  • index : String
Deletes all child nodes except for a root. ...

Deletes all child nodes except for a root.

( index ) : NodeObject
Adds a node at a specified index. ...

Adds a node at a specified index.

Parameters

  • index : String

Returns

  • NodeObject

    node

Dynamically defines the options of a UI ...

Dynamically defines the options of a UI

Parameters

  • key : String
  • value : Mixed
( name, html )
Dynamically defines the template method of a UI ...

Dynamically defines the template method of a UI

Parameters

  • name : String

    Template name

  • html : String

    Template markup

Removes the 'active' class from a selected node and gets an instance of the specified node. ...

Removes the 'active' class from a selected node and gets an instance of the specified node.

( index, data )
Changes to the node at a specified index. ...

Changes to the node at a specified index.

Parameters

  • index : Integer
  • data : Array
Defined By

Events

( e )
Event that occurs when the movement of a node is completed ...

Event that occurs when the movement of a node is completed

Parameters

  • e : Integer) index Node's index @param {EventObject

    The event object

Event that occurs when a node starts to move ...

Event that occurs when a node starts to move

Parameters

  • e : Integer) index Node's index @param {EventObject

    The event object

( e )
Event that occurs when a node is hidden ...

Event that occurs when a node is hidden

Parameters

  • e : NodeObject) node @param {EventObject

    The event object

( e )
Event that occurs when a node is shown ...

Event that occurs when a node is shown

Parameters

  • e : NodeObject) node @param {EventObject

    The event object

( e )
Event that occurs when a node is selected ...

Event that occurs when a node is selected

Parameters

  • e : NodeObject) node @param {EventObject

    The event object