assets-navigator/load-more-node.ts
Properties |
|
Methods |
|
constructor()
|
droppable |
Default value : true
|
icon |
Type : string
|
Default value : 'plus'
|
label |
Default value : gettext('Load more')
|
Static NAME |
Type : string
|
Default value : 'LoadMoreNode'
|
Optional breadcrumb |
Type : string
|
The breadcrumb of the node, displaying the "path", but supports multiple levels. e.g. (Groups > Level 1 > Level 2) |
children |
Type : NavigatorNode[]
|
Default value : []
|
Navigator node children (subentries). |
Optional component |
Type : Type<any>
|
Custom component to use. |
confirm |
Type : PopoverConfirmComponent
|
Default value : undefined
|
Confirmation popover displayed at the end of the process of moving the navigator menu item. |
draggable |
Default value : false
|
Indicates that the navigator node is draggable. |
dragged |
Default value : false
|
Indicates that the navigator node is dragged. |
draggedHover |
Default value : false
|
Indicates that currently something is dragged over the node. |
Optional featureId |
Type : string
|
Id to identify specific feature node. |
hidden |
Default value : false
|
Indicates that the navigator node is visible/hidden. |
Optional iconComponent |
Type : Type<any>
|
Custom icon component. |
iconOpen |
Type : string
|
Navigator node icon when expanded. |
Optional iconTemplate |
Type : TemplateRef<any>
|
Custom icon template. |
Optional injector |
Type : Injector
|
Used to load the providers for the components. If not provided, default injector us used. |
Optional loading |
Type : boolean
|
Loading state indicator. |
open |
Default value : false
|
Indicates that the navigator node is expanded/collapsed. |
parents |
Type : NavigatorNode[]
|
Default value : []
|
Navigator node parent nodes. |
path |
Type : string
|
The path to which the UI will be redirected after clicking the navigator node. |
translateLabel |
Default value : true
|
Whether to pass |
isGroup |
isGroup()
|
Returns :
boolean
|
toString |
toString()
|
Returns :
string
|
add | ||||||||
add(node: NavigatorNode)
|
||||||||
Adds a child navigator node to the node.
Parameters :
Returns :
void
|
Protected countChildren |
countChildren()
|
Counts the amount of children nodes.
Returns :
any
|
dragEnd | ||||||
dragEnd($event)
|
||||||
This event is fired when a drag operation has ended.
Parameters :
Returns :
void
|
dragEnter | ||||||
dragEnter($event)
|
||||||
This event is fired when a dragged element enters a valid drop target.
Parameters :
Returns :
void
|
dragLeave | ||||||
dragLeave($event)
|
||||||
This event is fired when a dragged element leaves a valid drop target.
Parameters :
Returns :
void
|
dragStart | ||||||
dragStart($event)
|
||||||
This event is fired when the user starts dragging an element.
Parameters :
Returns :
void
|
drop | ||||||
drop($event)
|
||||||
This event is fired when an element is dropped on a valid drop target.
Parameters :
Returns :
void
|
empty |
empty()
|
Removes children nodes.
Returns :
void
|
expand |
expand()
|
Expands the navigator node if it is collapsed.
Returns :
void
|
find | ||||||||||||
find(predicate, findBy)
|
||||||||||||
Returns a child navigator node based on the predicate. Example :
Parameters :
Returns :
any
|
Protected hasChildDevices |
hasChildDevices()
|
Returns :
boolean
|
remove | ||||||||
remove(node: NavigatorNode)
|
||||||||
Removes the child navigator node from the node.
Parameters :
Returns :
void
|
Protected sort |
sort()
|
Sorts the children of the navigator node, by priority and name (ASC). The higher the priority, the higher the position in the hierarchy. For the same priority values, the alphabetical order will take precedence.
Returns :
void
|
traverse | ||||||
traverse(callback)
|
||||||
Performs a callback function recursively on each of the navigator node's children down the hierarchy. Example :
Parameters :
Returns :
void
|
update | ||||||||
update(data?: NavigatorNodeData)
|
||||||||
Updates the navigator node.
Parameters :
Returns :
void
|
Protected updateChildren |
updateChildren()
|
Updates the navigator node by sorting its children and also checking their visibility.
Returns :
void
|
Protected updateHidden |
updateHidden()
|
Checks if the navigator node should be hidden based on the visibility of its child nodes.
Returns :
void
|