Members
-
<constant> $TreeDnDClass :object
-
Type:
- object
- Source:
Properties:
Name Type Argument Default Description treestring <optional>
tree-dnd Class tree
emptystring <optional>
tree-dnd-empty Class tree empty
hiddenstring <optional>
tree-dnd-hidden Class tree hidden
nodestring <optional>
tree-dnd-node Class tree node
nodesstring <optional>
tree-dnd-nodes Class tree nodes
handlestring <optional>
tree-dnd-handle Class tree handle
placestring <optional>
tree-dnd-place Class tree place
dragstring <optional>
tree-dnd-drag Class tree drag
statusstring <optional>
tree-dnd-status Class tree status (coping, moving)
iconobject -
$TreeDnDConvert :object
-
Type:
- object
- Source:
-
ElementPosition :object
-
Element position information (when drag & drop)
Type:
- object
- Source:
Properties:
Name Type Description offsetXnumber offsetYnumber startXnumber lastXnumber startYnumber lastYnumber nowXnumber nowYnumber distXnumber Distance of X
distYnumber Distance of Y
dirAXnumber Direct of Ax
dirXnumber Direct of X
dirYnumber Direct of Y
LastDirXnumber Last direct of X
distAxXnumber Distance of AxX
distAxYnumber Distance of AxY
-
Node :NodeBase
-
Node of tree
Type:
- Source:
Properties:
Name Type Description __parent_real__int __parent__Node __expanded__boolean __index__int __index_real__int __level__int __icon__int __icon_class__string __visible__boolean __uid__string __hashKey__string __dept__int -
NodeBase :object
-
NodeBase
Type:
- object
- Source:
Properties:
Name Type Argument Description __children__Array.<NodeBase> | undefined <optional>
-
NodeFilter
-
- Source:
Properties:
Name Type Description __filtered__boolean __filtered_visible__boolean __filtered_index__int
Methods
-
$TreeDnDFilter()
-
Factory $TreeDnDFilter
- Source:
Type Definitions
-
$safeApply(fn)
-
Call safeApply
Parameters:
Name Type Description fn- Source:
-
check_exist_attr(attrs, existAttr, isAnd)
-
Check attribute exist
Parameters:
Name Type Description attrsobject | array Array attributes
existAttrArray | string Criteria condition
isAndboolean Is condition AND
- Source:
Returns:
- Type
- *
-
do_f(root, node, parent, parent_real, level, visible, index)
-
do_f
Parameters:
Name Type Description rootArray.<Node> nodeNode parentNode parent_realint levelint visibleboolean | * indexint - Source:
Returns:
- Type
- number
-
fnInitTreeOrderBy(treeData, orderBy)
-
Function tree orderBy
Parameters:
Name Type Description treeDataArray.<Node> orderBystring - Source:
Returns:
- Type
- Array.<Node>
-
fnSetExpand(node)
-
Function set expand
Parameters:
Name Type Description nodeNode - Source:
-
for_each_attrs(attrs, exist, isAnd)
-
Foreach attributes with criteria
Parameters:
Name Type Description attrsObject | Array Array attributes
existArray | string Criteria condition
isAndboolean Is condition AND
- Source:
Returns:
- Type
- boolean
-
generateWatch(type, nameAttr, valDefault, nameScope, fnNotExist, fnAfter, fnBefore)
-
Function generate watch attribute by automatic
Parameters:
Name Type Description type* nameAttrstring Name attribute
valDefault* Value default
nameScopestring | undefined Name of attribute in $scope
fnNotExistfunction Callback when attribute not exist
fnAfterfunction Callback when attribute found
fnBeforefunction Callback before attribute found (to prepare data)
- Source:
-
getColDefs()
-
Get col defs
- Source:
-
getExpandOn()
-
Get Expand on
- Source:
-
reload_data( [data])
-
Reload data of tree
Parameters:
Name Type Argument Description dataArray.<Node> | undefined <optional>
- Source:
Returns:
- Type
- Array.<Node>
-
timeLoadData()
-
Reload data with timeout
- Source: