Bootstrap Chameleon Logo

SSearchBox

SSearchBox

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]
DelayChangeNotificationWhileTyping Bool
ForegroundColor Number Array, Length = 4 Linear color values, for example:[0.5, 0.5, 0.5, 1]
HintText String
OnTextChanged String The python code which will be executed.
OnTextCommitted String The python code which will be executed.
SelectAllTextWhenFocused Bool
ToolTipText String
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.

Examples

Example 1:

    "SSearchBox": 
    {
        "HintText": "Type Search Text",
        "ToolTipText": "Tool Tip",
        "OnTextChanged": "print(%)",
        "OnTextCommitted": "print(%)",
        "SelectAllTextWhenFocused": false,
        "DelayChangeNotificationWhiteTyping": true
    }