TimePicker
Last updated
Last updated
TimePicker
is a widget in Supervisely that allows to select time input.
value
str
TimePicker
value
start
str
Start time
step
str
Time step
end
str
End time
placeholder
str
TimePicker
placeholder
size
Literal["large", "small", "mini", None]
Size of input
readonly
bool
Whether TimePicker
is read only
disabled
bool
Whether TimePicker
is disabled
editable
bool
Whether the input is editable
clearable
bool
Whether to show clear button
widget_id
str
ID of the widget
Determine TimePicker
start time.
type: str
default value: "09:00"
Determine TimePicker
time step.
type: str
default value: "00:15"
Determine TimePicker
end time.
type: str
default value: "22:30"
Determine TimePicker
placeholder.
type: str
default value: None
Determine TimePicker
size of input.
type: Literal["large", "small", "mini", None]
default value: None
Determine whether TimePicker
is read only.
type: bool
default value: False
Determine whether the input is editable.
type: bool
default value: True
Determine whether to show a clear button.
type: bool
default value: True
ID of the widget.
type: str
default value: None
set_value()
Set TimePicker
current value.
get_value()
Return TimePicker
current value.
get_picker_options()
Return TimePicker
options(start, step, end).
set_start(value: str)
Set TimePicker
start time.
set_end(value: str)
Set TimePicker
time step.
set_step(value: str)
Set TimePicker
end time.
@value_changed
Decorator function to handle TimePicker
click.
You can find this example in our Github repository:
supervisely-ecosystem/ui-widgets-demos/input/008_time_picker/src/main.py
First, we load environment variables with credentials and init API for communicating with Supervisely Instance:
TimePicker
and Text
widgetsPrepare a layout for app using Card
widget with the content
parameter.
Create an app object with layout parameter.