TREEVIEW - AppDaddy-Software-Solutions-Inc/framework-markup-language GitHub Wiki
<TREEVIEW/> : <BOX/>
The <TREEVIEW/> widget creates a nestable list of clickable NODE
links.
-
TREEVIEW
may only containNODE
s as direct children. -
NODE
s can only be a child of aTREEVIEW
or nested in anotherNODE
- Attributes on
TREE
will cascade their values down eachNODE
in theTREE
unless overridden. - If not using nested
NODE
s in theTREEVIEW
use aLIST
widget instead. -
TREEVIEW
is 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>