TextArea
Last updated
Last updated
TextArea
widget in Supervisely is a widget that allows users to enter and edit multiple lines of text. The widget provides a large text input area that can be customized with various options, such as placeholder text, autosize or read-only properties, and default value. TextArea
widget is often used for collecting longer form input from users, such as descriptions or comments.
Parameters | Type | Description |
---|---|---|
|
| Widgets text value |
|
| Specifies a short hint that describes the expected value of a text area |
|
| Specifies the visible number of lines in a text area |
|
| Specifies that a text area should automatically get focus |
|
| Specifies that a text area should be read-only |
|
| ID of the widget |
Widgets text value
type: str
default value: None
Specifies a short hint that describes the expected value of a text area.
type: str
default value: "Please input"
Specifies the visible number of lines in a text area.
type: int
default value: 2
Specifies that a text area should automatically get focus.
type: bool
default value: True
Specifies that a text area should be read-only.
type: bool
default value: false
ID of the widget.
type: str
default value: None
Attributes and Methods | Description |
---|---|
| Set value data. |
| Returns input value data. |
| Check |
| Set |
| Set |
You can find this example in our Github repository:
ui-widgets-demos/text elements/002_textarea/src/main.py
First, we load environment variables with credentials and init API for communicating with Supervisely Instance:
Button
widgets we will useTextArea
widgetPrepare a layout for app using Card
widget with the content
parameter and place widget that we've just created in the Container
widget.
Create an app object with layout parameter.
Add functions to control widgets from python code