Namespace: $scope

$scope

Scope of tree

Source:

Namespaces

$callbacks
tree

Members


<static> $class :Object

Classes status

Type:
  • Object
Source:

<static> $safeApply :$safeApply

Function safe apply to avoid loop-depth

Type:
Source:

<static> $tree_class :string

Tree's class

Type:
  • string
Default Value:
  • 'table'
Source:

<static> $type :string

Type of Tree

Type:
  • string
Default Value:
  • 'TreeDnD'
Source:

<static> enabledStatus :boolean

Enable status (moving, coping)

Type:
  • boolean
Source:

<static> getHash :_fnGetHash

Get hash of node

Type:
  • _fnGetHash
Source:

<static> indent :number

Indent basic

Type:
  • number
Default Value:
  • 20
Source:

<static> indent_plus :number

Indent plus each level

Type:
  • number
Default Value:
  • 15
Source:

<static> indent_unit :string

Indent unit

Type:
  • string
Default Value:
  • 'px'
Source:

<static> primary_key :string

Primary key

Type:
  • string
Default Value:
  • '__uid__'
Source:

<static> reload_data :reload_data

Reload data

Type:
Source:

<static> targeting :boolean

Status targeting when drag & drop

Type:
  • boolean
Source:

<static> tree_nodes :Array.<Node>

Tree nodes

Type:
Default Value:
  • []
Source:

<static> treeData :Array.<Node>

Tree data

Type:
Default Value:
  • []
Source:

Methods


<static> deleteScope(scope, node)

Delete scope by node

Parameters:
Name Type Description
scope $scope
node Node
Source:

<static> enableMove(val)

Get status node is enable move

Parameters:
Name Type Description
val
Source:

<static> getElementChilds()

Get element children

Source:
Returns:
Type
Object

<static> getLastDescendant( [node])

Get last descendant

Parameters:
Name Type Argument Description
node Node | undefined <optional>
Source:
Returns:
Type
Node | undefined

<static> getNode(index)

Get node by index

Parameters:
Name Type Description
index int
Source:
Returns:
Type
Node | undefined

<static> getPrevSibling(node)

Get node previous sibling

Parameters:
Name Type Description
node
Source:
Returns:
Type
Node | undefined

<static> getScope(node)

Get scope of node

Parameters:
Name Type Description
node Node
Source:
Returns:
Type
$scope

<static> getScopeTree()

Get scope tree

Source:
Returns:
Type
$scope

<static> hiddenChild(node, parent)

Hide children

Parameters:
Name Type Description
node Node
parent Node
Source:
Returns:
Type
boolean

<static> hidePlace()

Hide element place

Source:

<static> hideStatus()

Hide status

Source:

<static> initPlace(element, dragElm)

Init element place

Parameters:
Name Type Description
element DOMElement
dragElm DOMElement
Source:
Returns:
Type
*

<static> onClick(node)

Event onClick, will call function on_click

Parameters:
Name Type Description
node Node | undefined

For node

Source:

<static> onSelect( [node])

Event onSelect for node

Parameters:
Name Type Argument Description
node Node | undefined <optional>

For node

Source:

<static> refreshStatus()

Refresh Status

Source:

<static> setDragging(dragInfo)

Set status dragging

Parameters:
Name Type Description
dragInfo
Source:

<static> setPositionStatus(e)

Set position status

Parameters:
Name Type Description
e Event
Source:

<static> setScope(scope, node)

Set scope for node

Parameters:
Name Type Description
scope $scope
node Node
Source:

<static> showPlace()

Show element place

Source:

<static> toggleExpand(node, fnCallback)

Toggle Expand

Parameters:
Name Type Description
node Node | undefined

For node

fnCallback function
Source:

<static> updateLimit()

Update limit

Source:

Type Definitions


for_all_descendants(node, fn [, parent] [, checkSibling])

Function foreach all descendants

Parameters:
Name Type Argument Default Description
node Node
fn function | $scope.for_all_descendants
parent Node <optional>
checkSibling boolean <optional>
false

Check sibling of node

Source:
Returns:
Type
boolean