Bootstrap Chameleon Logo

SComboBox

SComboBox

Property Type Note
Aka String Name for the widget
InitiallySelectedItem String The initially selected item of SComboBox.
OnSelectionChanged String The python code which will be executed. replacement flag: %index or %
OptionsSource String Array
ToolTipText String
Visibility Enum: EVisibility: Visible, Collapsed, Hidden, HitTestInvisible, SelfHitTestInvisible, All

functions what can be called from ChameleonData

FunctionName Description
set_combo_box_items Set SComboBox's content list.
get_combo_box_items Get SComboBox's content list.
get_combo_box_selected_item Get the selection of SComboBox.
set_combo_box_selected_item Set the selection of SComboBox.

Examples

Example 1:

    "SComboBox": {
        "Aka": "CombBoxA",
        "Content": {
            "Text": "ComboBox"
        },
        "OptionsSource": [
            "OptionA",
            "OptionB",
            "OptionB"
        ],
        "OnSelectionChanged": "print(%)"
    }