new VirtualTreeEntry(optionsopt)
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options.label |
String |
<optional> |
false
|
Set to a string to display a label,
set to |
options.icon |
String |
<optional> |
false
|
Set to a string to display an icon,
set to |
options.depth |
Array | Boolean |
<optional> |
false
|
An array containing
strings defining the indentation icons. Possible strings are
|
options.collapsable |
Boolean |
<optional> |
false
|
Defines if the entry is collapsable. Collapsable items are displayed as group headers with a button to toggle collapsed state. |
options.collapsed |
Boolean |
<optional> |
false
|
Defines the collapsed state of a group header and its descendants. |
options.icon_collapsed |
String |
<optional> |
'arrowup'
|
The icon to display in groups collapse button for collapsed state. |
options.icon_uncollapsed |
String |
<optional> |
'arrowdown'
|
The icon to display in groups collapse button for uncollapsed (open) state. |
options.odd |
Boolean |
<optional> |
false
|
Defines the divisibility by two of the index of the entry in the list. This sets the class aux-odd to style alternating entries. |
options.group |
Boolean |
<optional> |
false
|
Define if this entry is a group header. |
options.connected |
Boolean |
<optional> |
false
|
Sets class aux-connected. |
options.hovered |
Boolean |
<optional> |
false
|
Sets class aux-hovered. |
VirtualTreeEntry is the base class used in VirtualTree. It consists of a Label, an Icon, a Button for collapsing grouped entries and a Label displaying indentation icons. Overload this class if you want to add more items.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options |
Object |
<optional> |
{ }
|
An onject containing initial options. |
Extends
- VirtualTreeEntryBase