Treeview
Component is build based on Angular Tree Component
Usage
app.html
app.ts
app.scss
Treeview input properties
Attr
Type
Details
items
array
Array of tree items.
options
object
Treeview options object. Optional.
idField
string
Name of property to be ID for the item. Default is id.
displayField
string
Name of property to be NAME for the item. Default is name.
childrenField
string
Name of property to be ARRAY with childrens for the item. Default is children.
isExpandedField
string
Name of property to be boolean EXPANDED for the item. Default is expanded.
selectable
boolean
Boolean property which means to be selectable with checkbox for each item.
allowDrag
boolean
Boolean property which means to alow items draging.
animateExpand
boolean
Boolean property which means animated items expanding.
Treeview styling properties
Attr
Type
Details
container
StylingModel
Styling options for container.
item
StylingModel
Styling options for all items.
Treeview output properties
Attr
Details
cfSelected
Event is fired when user select/unselect tree items and emit array of selected items indexes.
Last updated