TextArea#

pydantic model zero_true.TextArea#

Text area input allows a user to input arbitrary text. This is meant for larger text inputs

Show JSON schema
{
   "title": "TextArea",
   "description": "Text area input allows a user to input arbitrary text. This is meant for larger text inputs",
   "type": "object",
   "properties": {
      "id": {
         "description": "Unique id for a component",
         "title": "Id",
         "type": "string"
      },
      "variable_name": {
         "default": "",
         "description": "Optional variable name associated with a component",
         "title": "Variable Name",
         "type": "string"
      },
      "component": {
         "default": "v-textarea",
         "description": "Vue component name",
         "title": "Component",
         "type": "string"
      },
      "hint": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": "Press Enter to Submit",
         "description": "Hint text for the text input",
         "title": "Hint"
      },
      "value": {
         "default": "",
         "description": "The input text value",
         "title": "Value",
         "type": "string"
      },
      "placeholder": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "Placeholder text",
         "title": "Placeholder"
      },
      "label": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "Label for the text input",
         "title": "Label"
      },
      "readonly": {
         "anyOf": [
            {
               "type": "boolean"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "If true, the input is read-only",
         "title": "Readonly"
      },
      "disabled": {
         "anyOf": [
            {
               "type": "boolean"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "If true, the input is disabled",
         "title": "Disabled"
      },
      "triggerEvent": {
         "default": null,
         "description": "Trigger event to send code to the backend",
         "title": "Triggerevent",
         "type": "string"
      }
   },
   "required": [
      "id"
   ]
}

field component: str = 'v-textarea'#

Vue component name

field disabled: bool | None = None#

If true, the input is disabled

field hint: str | None = 'Press Enter to Submit'#

Hint text for the text input

field label: str | None = None#

Label for the text input

field placeholder: str | None = None#

Placeholder text

field readonly: bool | None = None#

If true, the input is read-only

field triggerEvent: str = None#

Trigger event to send code to the backend

field value: str = ''#

The input text value

classmethod get_value_from_global_state(value, values)#