SHorizontalBox¶
| Property | Type | Note |
|---|---|---|
| Aka | String | Name for the widget |
| Slots | Array | The array which contain children widgets |
| ToolTipText | String | |
| Visibility | Enum: EVisibility: Visible, Collapsed, Hidden, HitTestInvisible, SelfHitTestInvisible, All | |
| AutoWidth | Bool | |
| HAlign | String | Enum:EHorizontalAlignment: Fill, Left, Center, Right. Has no effect when AutoWidth == True |
| VAlign | String | Enum:EVerticalAlignment: Fill, Top, Center, Bottom |
| ### functions what can be called from ChameleonData | ||
| FunctionName | Description | |
| :--- | :---- | :---- |
| append_slot_from_json | Add a child widget through the content of the JSON string. It's for the widget which has 'Slots'. | |
| insert_slot_from_json | Add a child widget at Specified slot through the content of the JSON string. | |
| remove_widget_at | Remove a child widget at Specified slot or widget. |
Examples¶
Example 1:
"SHorizontalBox":
{
"Slots": [
{
"STextBlock":
{
"Text": "SBreadcrumbTrail"
}
},
{
"Padding": [10, 0],
"SButton":
{
"Text": "Add",
"HAlign": "Center",
"VAlign": "Center",
"OnClick": "gallery.push_breadcrumb()"
}
}
]
}