Treeview - AppDaddy-Software-Solutions-Inc/framework-markup-language GitHub Wiki
<TREEVIEW/> : <BOX/>
The <TREEVIEW/> widget creates a nestable list of clickable NODE links.
-
TREEVIEWmay only containNODEs as direct children. -
NODEs can only be a child of aTREEVIEWor nested in anotherNODE - Attributes on
TREEwill cascade their values down eachNODEin theTREEunless overridden. - If not using nested
NODEs in theTREEVIEWuse aLISTwidget instead. -
TREEVIEWis only intended to provide text and/or an icon to be clicked/tapped, for more customization use aLIST.
| Name | Type | Default | Description | Req |
|---|---|---|---|---|
| expandedicon | string | null | The icon on NODE(s) if expanded == true. |
|
| icon | string | null | The icon on NODE(s) if expanded == false. |
|
| color | string | true | The color of each icon and expandedicon. |
| Name | Type | Default | Description | Req |
|---|---|---|---|---|
| label | string | null | The label on the node | ✔️ |
| onclick | string | null | The Events to be executed | ✔️ |
| expanded | bool | false | If the widget should be initially expanded or not |
<FML>
<SPLITVIEW width="230">
<VIEW>
<TREEVIEW icon="keyboard_arrow_right" expandedicon="keyboard_arrow_down">
<NODE label="Information Components" expanded="true">
<NODE label="Text Attributes" >
<NODE label="Demo All Text" onclick="open('/resources/demo/demo-text.xml?title=Text')" />
<NODE label="Markdown" onclick="" />
<NODE label="Font" onclick="" />
<NODE label="Style" onclick="" />
</NODE>
<NODE label="Tooltip" onclick="open('/resources/demo/demo-tooltip.xml?title=Tooltip')" />
</NODE>
<NODE label="Input Types" expanded="true">
<NODE label="Input" onclick="open('/resources/demo/demo-input.xml?title=Input')" />
</NODE>
</TREEVIEW>
</VIEW>
<VIEW>
<BOX>
<TABVIEW id="tv" tabbutton="true" tabbar="true" />
</BOX>
</VIEW>
</SPLITVIEW>
</FML>