Scope of tree
- Source:
Namespaces
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:
- Array.<Node>
- Default Value:
-
- []
- Source:
-
<static> treeData :Array.<Node>
-
Tree data
Type:
- Array.<Node>
- Default Value:
-
- []
- Source:
Methods
-
<static> deleteScope(scope, node)
-
Delete scope by node
Parameters:
Name Type Description scope$scope nodeNode - 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 nodeNode | undefined <optional>
- Source:
Returns:
- Type
- Node | undefined
-
<static> getNode(index)
-
Get node by index
Parameters:
Name Type Description indexint - 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 nodeNode - Source:
Returns:
- Type
- $scope
-
<static> getScopeTree()
-
Get scope tree
- Source:
Returns:
- Type
- $scope
-
<static> hiddenChild(node, parent)
-
Hide children
Parameters:
Name Type Description nodeNode parentNode - 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 elementDOMElement dragElmDOMElement - Source:
Returns:
- Type
- *
-
<static> onClick(node)
-
Event onClick, will call function
on_clickParameters:
Name Type Description nodeNode | undefined For node
- Source:
-
<static> onSelect( [node])
-
Event onSelect for node
Parameters:
Name Type Argument Description nodeNode | 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 eEvent - Source:
-
<static> setScope(scope, node)
-
Set scope for node
Parameters:
Name Type Description scope$scope nodeNode - Source:
-
<static> showPlace()
-
Show element place
- Source:
-
<static> toggleExpand(node, fnCallback)
-
Toggle Expand
Parameters:
Name Type Description nodeNode | undefined For node
fnCallbackfunction - 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 nodeNode fnfunction | $scope.for_all_descendants parentNode <optional>
checkSiblingboolean <optional>
false Check sibling of node
- Source:
Returns:
- Type
- boolean