Bootstrap Chameleon Logo

STreeView

STreeView

Property Type Note
Aka String Name for the widget
ColorAndOpacity Number Array, Length = 4 Linear color values, for example:[0.5, 0.5, 0.5, 1]
ForegroundColor Number Array, Length = 4 Linear color values, for example:[0.5, 0.5, 0.5, 1]
ItemHeight Number
OnContextMenuOpening Object JSON Value that contains the menu config. Same as the menu in the MenuConfig.ini
OnMouseButtonDoubleClick String The python code which will be executed.
OnSelectionChanged String The python code which will be executed. replacement flag: %index or %
ToolTipText String
TreeItemParentIndices Number Array Index of the current item's parent of the list
TreeItemSource String Array
Visibility Enum: EVisibility: Visible, Collapsed, Hidden, HitTestInvisible, SelfHitTestInvisible, All

functions what can be called from ChameleonData

FunctionName Description
set_color_and_opacity Set widget's color and opacity.
set_tree_view_items Set the source items of SListView.
get_tree_view_items Set the source items of SListView.

Examples

Example 1:

    "STreeView":
    {
        "Aka": "TreeViewA",
        "SHeaderRow": {
            "Columns": [
                {
                    "DefaultLabel": "Tree View List",
                    "FillWidth": 1
                }
            ]
        },
        "TreeItemSource": ["ItemA", "ItemB", "ItemC", "ItemD", "ItemE", "ItemF" ],
        "TreeItemParentIndices": [-1, 0, 0, 2, 1, 1]
    }