Controls & Parameters
TextBox
¶
A single-line text field where the user can enter data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
t.Optional[str]
|
The name of the parameter. |
None
|
label |
t.Optional[str]
|
The label of the parameter, visible to the user. |
None
|
initial |
str
|
The initial value of the parameter. |
''
|
allow_empty |
bool
|
Whether to allow the user to enter an empty string. |
False
|
¶
Range
¶
A slider where the user can select a value within a range.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
t.Optional[str]
|
The name of the parameter. |
None
|
label |
t.Optional[str]
|
The label of the parameter, visible to the user. |
None
|
initial |
Numeric
|
The initial value of the parameter. |
required |
min |
Numeric
|
The minimum allowed value of the parameter. |
required |
max |
Numeric
|
The maximum allowed value of the parameter. |
required |
step |
t.Optional[Numeric]
|
The step size of the parameter. |
None
|
¶
Choice
¶
A drop-down allowing the selection of a single value from a list.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
t.Optional[str]
|
The name of the parameter. |
None
|
label |
t.Optional[str]
|
The label of the parameter, visible to the user. |
None
|
options |
SList
|
The list of options to choose from. |
required |
initial |
t.Optional[str]
|
The initial value of the parameter. |
None
|
¶
MultiChoice
¶
A drop-down allowing the selection of a multiple values from a list.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
t.Optional[str]
|
The name of the parameter. |
None
|
label |
t.Optional[str]
|
The label of the parameter, visible to the user. |
None
|
options |
SList
|
The list of options to choose from. |
required |
initial |
SList
|
The initial value of the parameter. |
[]
|
allow_empty |
bool
|
Whether to allow the user to select no options. |
False
|
¶
Tags
¶
A drop-down allowing the selection of multiple values from a list. Allows adding new items to the list.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
t.Optional[str]
|
The name of the parameter. |
None
|
label |
t.Optional[str]
|
The label of the parameter, visible to the user. |
None
|
initial |
SList
|
An initial selection of tags |
[]
|
allow_empty |
bool
|
Whether to allow the user to select no tags. |
False
|
¶
Date
¶
A control allowing the selection of a date (dd/mm/yyyy
).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
t.Optional[str]
|
The name of the parameter. |
None
|
label |
t.Optional[str]
|
The label of the parameter, visible to the user. |
None
|
initial |
t.Optional[date]
|
The initial value of the parameter. |
None
|
¶
DateTime
¶
A control allowing the selection of a date and time (dd/mm/yyyy, hh:mm:ss
).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
t.Optional[str]
|
The name of the parameter. |
None
|
label |
t.Optional[str]
|
The label of the parameter, visible to the user. |
None
|
initial |
t.Optional[datetime]
|
The initial value of the parameter. |
None
|
¶
File
¶
A control allowing the upload of a File from the user's device. Max size 25MB
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
t.Optional[str]
|
The name of the parameter. |
None
|
label |
t.Optional[str]
|
The label of the parameter, visible to the user. |
None
|
initial |
t.Optional[B64Path]
|
The initial value of the parameter. |
None
|
allow_empty |
bool
|
Whether to allow the user to not upload a file. |
False
|