qwc/projects/qwc/src/lib/components/qwc-tree/qwc-tree.component.ts
Component to create tree
OnInit
OnChanges
FocusableOption
| selector | qwc-tree |
| templateUrl | qwc-tree.component.html |
Properties |
Methods |
Inputs |
Outputs |
HostListeners |
constructor(treeService: QwcTreeService, element: ElementRef)
|
|||||||||
|
Parameters :
|
| activeNode |
Type : any
|
| config |
Type : QwcTreeConfig
|
Default value : {
childKey: "child", showCheckbox: false,
isExpandedTree: false, showExpandCollapse: true,
showHierarchyLines: false
}
|
| isRoot |
Default value : false
|
| node |
Type : any
|
| rootId |
Type : string
|
| selectedNodes |
Type : any
|
| nodeSelected |
Type : EventEmitter
|
| keydown |
Arguments : '$event'
|
keydown(event: KeyboardEvent)
|
| expandTrigger | |||||||||
expandTrigger(treeNode, actionBtn)
|
|||||||||
|
Node trigger handler to collapse/expand nodes
Parameters :
Returns :
void
void |
| focus |
focus()
|
|
Returns :
void
|
| getSelectedNode |
getSelectedNode()
|
|
Get selected node
Returns :
any
void |
| ngOnChanges | ||||||||
ngOnChanges(changes: SimpleChanges)
|
||||||||
|
Component lifecycle hook
Parameters :
Returns :
void
void |
| ngOnInit |
ngOnInit()
|
|
Component lifecycle hook
Returns :
void
void |
| setItemCheckbox | |||||||||
setItemCheckbox(item, value)
|
|||||||||
|
To check all the decendent items
Parameters :
Returns :
void
void |
| treeNodeSelected | ||||
treeNodeSelected(node)
|
||||
|
Tree node selected
Parameters :
Returns :
void
void |
| CSS_CLASSES |
Type : object
|
Default value : {
BRANCH: "tree-branch",
BRANCH_HIDE: "tree-branch--hide",
NODE_ACTION_COLLAPSE: "tree-node-action--collapse",
NODE_ACTION_EXPAND: "tree-node-action--expand"
}
|
| treeNodesContainer |
Type : ElementRef
|
Decorators :
@ViewChild('treeNodesContainer')
|