Factory $TreeDnDHelper
- Source:
Methods
-
<static> closestByAttr(element, attr)
-
Find element closest by attribute
Parameters:
Name Type Description elementDOMElement attrstring | function - Source:
Returns:
- Type
- DOMElement
-
<static> dragInfo(scope)
-
Get drag info
Parameters:
Name Type Description scope$scope - Source:
Returns:
- Type
- object
-
<static> eventObj(e)
-
Get event's object
Parameters:
Name Type Description eobject - Source:
Returns:
- Type
- object | null
-
<static> height(element)
-
Get element's height
Parameters:
Name Type Description elementDOMElement - Source:
Returns:
- Type
- number
-
<static> isTreeDndDroppable(element)
-
Is tree droppable
Parameters:
Name Type Description elementDOMElement - Source:
Returns:
- Type
- boolean
-
<static> isTreeDndNode(element)
-
Is type tree node
Parameters:
Name Type Description elementDOMElement - Source:
Returns:
- Type
- boolean
-
<static> isTreeDndNodeHandle(element)
-
Is tree node handle (element to call event drag)
Parameters:
Name Type Description elementDOMElement - Source:
Returns:
- Type
- boolean
-
<static> isTreeDndNodes(element)
-
Is tree nodes (container)
Parameters:
Name Type Description elementDOMElement - Source:
Returns:
- Type
- boolean
-
<static> nodrag(targetElm)
-
Status is no draggable
Parameters:
Name Type Description targetElmDOMElement - Source:
Returns:
- Type
- boolean
-
<static> offset(element)
-
Get element's offset
Parameters:
Name Type Description elementDOMElement - Source:
Returns:
- Type
- Object
-
<static> positionMoved(e, pos, firstMoving)
-
Get position moved
Parameters:
Name Type Description eEvent posElementPosition firstMovingbool - Source:
Returns:
- Type
- object
-
<static> positionStarted(e, target)
-
Get position started of element drag or drop
Parameters:
Name Type Description eEvent targetDOMElement - Source:
Returns:
- Type
- ElementPosition
-
<static> replaceIndent(scope, element, indent, attr)
-
Replace with indent
Parameters:
Name Type Description scope$scope elementDOMElement indentnumber attrstring - Source:
-
<static> width(element)
-
Get element's width
Parameters:
Name Type Description elementDOMElement - Source:
Returns:
- Type
- number