SEditableText

SEditableText

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]
Font Object For example:"Font":
HintText String
IsReadOnly Bool
Justification String Enum: ETextJustify: Left, Center, Right
MinDesiredWidth Number
OnContextMenuOpening Object JSON Value that contains the menu config. Same as the menu in the MenuConfig.ini
OnTextChanged String The python code which will be executed.
OnTextCommitted String The python code which will be executed.
SelectAllTextWhenFocused Bool
Text String
ToolTipText String
Visibility Enum: EVisibility: Visible, Collapsed, Hidden, HitTestInvisible, SelfHitTestInvisible, All

functions what can be called from ChameleonData

FunctionName Description
set_text Set the text of widget:
get_text Get the text of widget.
set_text_read_only Set the text of widget Read Only or not.

Examples

Example 1:

    "SEditableText":
    {
        "Text": "Some Text"
    }

Example 2:

    "SEditableText":
    {
        "ColorAndOpacity": [1, 1, 1, 1],
        "Font": {
            "Style": "FCoreStyle",
            "StyleName": "DefaultFont.Bold.11",
        },
        "HintText": "Readonly Text Can't Be Edit.",
        "IsReadOnly": true,
        "Justification": "Left",
        "MinDesiredWidth": 100,
        "Text": "Some readonly text.",
        "OnTextChanged": "print(%)",
        "SelectAllTextWhenFocused": true,
        "OnTextCommitted": "print('input text: {}'.format(%))"
    }

Back to Support Slates