core/navigator/navigator-node.ts
Base navigator node. Represents a single entry in the navigator menu. Is considered to be the basic building block of the navigator.
Properties |
|
Methods |
Accessors |
children |
children:
|
Type : NavigatorNode[]
|
Default value : []
|
Navigator node children (subentries). |
confirm |
confirm:
|
Type : PopoverConfirmComponent
|
Default value : undefined
|
Confirmation popover displayed at the end of the process of moving the navigator menu item. |
draggable |
draggable:
|
Type : boolean
|
Default value : false
|
Indicates that the navigator node is draggable. |
dragged |
dragged:
|
Default value : false
|
Indicates that the navigator node is dragged. |
draggedHover |
draggedHover:
|
Default value : false
|
Indicates that currently something is dragged over the node. |
droppable |
droppable:
|
Type : boolean
|
Default value : false
|
Indicates that the navigator node is droppable. |
hidden |
hidden:
|
Type : boolean
|
Default value : false
|
Indicates that the navigator node is visible/hidden. |
icon |
icon:
|
Type : string
|
Navigator node icon. |
Optional iconComponent |
iconComponent:
|
Type : Type<any>
|
Custom icon component. |
Optional iconTemplate |
iconTemplate:
|
Type : TemplateRef<any>
|
Custom icon template. |
label |
label:
|
Label to be displayed in the navigator node. |
Optional loading |
loading:
|
Type : boolean
|
Loading state indicator. |
open |
open:
|
Type : boolean
|
Default value : false
|
Indicates that the navigator node is expanded/collapsed. |
parents |
parents:
|
Type : NavigatorNode[]
|
Default value : []
|
Navigator node parent nodes. |
path |
path:
|
Type : string
|
The path to which the UI will be redirected after clicking the navigator node. |
routerLinkExact |
routerLinkExact:
|
Type : boolean
|
Default value : true
|
Indicates whether the navigator node should be active based on matching the node path and the URL path. To match the URL exactly, set this option to true. routerLinkExact set to true: When the URL path is set to /a/b/c and the node path to /a/b then the node will not be set active. routerLinkExact set to false: When the URL path is set to /a/b/c and the node path to /a/b then the node will be set active. |
add | ||||||||
add(node: NavigatorNode)
|
||||||||
Adds a child navigator node to the node.
Parameters :
Returns :
void
|
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)
|
||||||
Returns a child navigator node based on the predicate.
Parameters :
Example :
Returns :
any
|
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.
Parameters :
Example :
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
|
hasChildren |
gethasChildren()
|
Returns information whether a navigator node has children. |
id |
getid()
|
Returns the ID of the navigator node. |
priority | ||||||
getpriority()
|
||||||
Returns the priority value of the navigator node. |
||||||
setpriority(priority)
|
||||||
Sets the priority value of the navigator node.
Parameters :
Returns :
void
|
canDrop |
getcanDrop()
|
Returns information whether the navigator node is droppable. |
canNavigate |
getcanNavigate()
|
Returns information whether navigation is possible. |