assets-navigator/asset-selector/group-node.ts
Properties |
|
Methods |
|
constructor(service: GroupNodeService, config: GroupNodeConfig)
|
||||||||||||
|
Creates a new node which shows only groups.
Parameters :
|
| children |
Type : GroupNode[]
|
Default value : []
|
|
Group node children (subentries). |
| groupsOnly |
Type : unknown
|
Default value : false
|
|
Set this true, if only groups should be shown. |
| groupsSelectable |
Type : unknown
|
Default value : false
|
|
Set this true, if it groups are also selectable. |
| Static NAME |
Type : string
|
Default value : 'GroupNode'
|
| showChildDevices |
Type : unknown
|
Default value : false
|
|
Devices with children can be selected to show their child devices. |
| events |
Type : Subject<AssetsNavigatorAction>
|
| filterQuery$ |
Type : unknown
|
Default value : new BehaviorSubject<string>('')
|
| hideDevices |
Type : unknown
|
Default value : false
|
| Protected loadMoreNode |
Type : LoadMoreNode
|
| mo |
Type : any
|
| nodesFetched |
Type : Subject<void>
|
Default value : new Subject()
|
| Protected paging |
Type : Paging<AssetNodeMo>
|
| root |
Type : boolean
|
| Optional breadcrumb |
Type : string
|
|
The breadcrumb of the node, displaying the "path", but supports multiple levels. e.g. (Groups > Level 1 > Level 2) |
| 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 |
Type : unknown
|
Default value : false
|
|
Indicates that the navigator node is draggable. |
| dragged |
Type : unknown
|
Default value : false
|
|
Indicates that the navigator node is dragged. |
| draggedHover |
Type : unknown
|
Default value : false
|
|
Indicates that currently something is dragged over the node. |
| droppable |
Type : unknown
|
Default value : false
|
|
Indicates that the navigator node is droppable. |
| Optional featureId |
Type : string
|
|
Id to identify specific feature node. |
| hidden |
Type : unknown
|
Default value : false
|
|
Indicates that the navigator node is visible/hidden. |
| icon |
Type : SupportedIconsSuggestions
|
|
Navigator node icon. |
| 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. |
| label |
Type : string
|
|
Label to be displayed in the navigator node. |
| Optional loading |
Type : boolean
|
|
Loading state indicator. |
| open |
Type : unknown
|
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. |
| Optional refreshCallback |
Type : function
|
|
A callback function that will be called when the node needs to be refreshed. |
| translateLabel |
Type : unknown
|
Default value : true
|
|
Whether to pass |
| addManagedObject | ||||||||
addManagedObject(mo: unknown)
|
||||||||
|
Adds the MO as a child node.
Parameters :
Returns :
void
|
| countChildren |
countChildren()
|
|
Counts the number of children for the current node (with the exception of the UnassignedDevicesNode).
Returns :
number
|
| empty |
empty()
|
|
Removes all child nodes except the UnassignedDevicesNode.
Returns :
void
|
| fetch |
fetch()
|
|
Returns :
any
|
| isGroup |
isGroup()
|
|
Returns :
any
|
| toString |
toString()
|
|
Returns :
string
|
| Protected addNodes | ||||||
addNodes(res: unknown)
|
||||||
|
Parameters :
Returns :
void
|
| click | ||||||||
click(options: ClickOptions)
|
||||||||
|
Parameters :
Returns :
void
|
| destroy |
destroy()
|
|
Returns :
void
|
| dragEnd | ||||||
dragEnd($event: unknown)
|
||||||
|
Parameters :
Returns :
void
|
| dragStart | ||||||
dragStart($event: unknown)
|
||||||
|
Parameters :
Returns :
void
|
| Async drop | ||||||
drop($event: unknown)
|
||||||
|
Parameters :
Returns :
any
|
| getPath |
getPath()
|
|
Returns :
any
|
| Protected Async handleEvent | ||||||
handleEvent(evt: AssetsNavigatorAction)
|
||||||
|
Parameters :
Returns :
any
|
| hasChildDevices |
hasChildDevices()
|
|
Checks if the current node has child devices.
Returns :
boolean
|
| hookEvents |
hookEvents()
|
|
Returns :
void
|
| isChildAddition | |||||||||
isChildAddition(childAdditions: unknown, mo: unknown)
|
|||||||||
|
Parameters :
Returns :
any
|
| refresh |
refresh(mo: any, method: string)
|
|
Returns :
void
|
| setLabel |
setLabel()
|
|
Returns :
void
|
| sort |
sort()
|
|
Returns :
void
|
| Protected toggleLoadMore | ||||||
toggleLoadMore(show: boolean)
|
||||||
|
Parameters :
Returns :
void
|
| Protected Async updateIcon | ||||||
updateIcon(open: unknown)
|
||||||
|
Parameters :
Returns :
any
|
| add | ||||||||
add(node: NavigatorNode)
|
||||||||
|
Adds a child navigator node to the node.
Parameters :
Returns :
void
|
| dragEnter | ||||||||
dragEnter($event: unknown)
|
||||||||
|
This event is fired when a dragged element enters a valid drop target.
Parameters :
Returns :
void
|
| dragLeave | ||||||||
dragLeave($event: unknown)
|
||||||||
|
This event is fired when a dragged element leaves a valid drop target.
Parameters :
Returns :
void
|
| expand |
expand()
|
|
Expands the navigator node if it is collapsed.
Returns :
void
|
| find | |||||||||||||||
find(predicate: unknown, findBy: unknown)
|
|||||||||||||||
|
Returns a child navigator node based on the predicate. Example :
Parameters :
Returns :
any
|
| remove | ||||||||
remove(node: NavigatorNode)
|
||||||||
|
Removes the child navigator node from the node.
Parameters :
Returns :
void
|
| traverse | ||||||||
traverse(callback: unknown)
|
||||||||
|
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
|