Global

Members


<constant> $TreeDnDClass :object

Type:
  • object
Properties:
Name Type Argument Default Description
tree string <optional>
tree-dnd

Class tree

empty string <optional>
tree-dnd-empty

Class tree empty

hidden string <optional>
tree-dnd-hidden

Class tree hidden

node string <optional>
tree-dnd-node

Class tree node

nodes string <optional>
tree-dnd-nodes

Class tree nodes

handle string <optional>
tree-dnd-handle

Class tree handle

place string <optional>
tree-dnd-place

Class tree place

drag string <optional>
tree-dnd-drag

Class tree drag

status string <optional>
tree-dnd-status

Class tree status (coping, moving)

icon object
Source:

$TreeDnDConvert :object

Type:
  • object
Source:

ElementPosition :object

Element position information (when drag & drop)

Type:
  • object
Properties:
Name Type Description
offsetX number
offsetY number
startX number
lastX number
startY number
lastY number
nowX number
nowY number
distX number

Distance of X

distY number

Distance of Y

dirAX number

Direct of Ax

dirX number

Direct of X

dirY number

Direct of Y

LastDirX number

Last direct of X

distAxX number

Distance of AxX

distAxY number

Distance of AxY

Source:

Node :NodeBase

Node of tree

Type:
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
Source:

NodeBase :object

NodeBase

Type:
  • object
Properties:
Name Type Argument Description
__children__ Array.<NodeBase> | undefined <optional>
Source:

NodeFilter

Properties:
Name Type Description
__filtered__ boolean
__filtered_visible__ boolean
__filtered_index__ int
Source:

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
attrs object | array

Array attributes

existAttr Array | string

Criteria condition

isAnd boolean

Is condition AND

Source:
Returns:
Type
*

do_f(root, node, parent, parent_real, level, visible, index)

do_f

Parameters:
Name Type Description
root Array.<Node>
node Node
parent Node
parent_real int
level int
visible boolean | *
index int
Source:
Returns:
Type
number

fnInitTreeOrderBy(treeData, orderBy)

Function tree orderBy

Parameters:
Name Type Description
treeData Array.<Node>
orderBy string
Source:
Returns:
Type
Array.<Node>

fnSetExpand(node)

Function set expand

Parameters:
Name Type Description
node Node
Source:

for_each_attrs(attrs, exist, isAnd)

Foreach attributes with criteria

Parameters:
Name Type Description
attrs Object | Array

Array attributes

exist Array | string

Criteria condition

isAnd boolean

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 *
nameAttr string

Name attribute

valDefault *

Value default

nameScope string | undefined

Name of attribute in $scope

fnNotExist function

Callback when attribute not exist

fnAfter function

Callback when attribute found

fnBefore function

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
data Array.<Node> | undefined <optional>
Source:
Returns:
Type
Array.<Node>

timeLoadData()

Reload data with timeout

Source: