Skip to main content

Time Input

The Time Input component allows the user to fill in a time.

Time Input

The following section details Time Input component's specific settings. For more details on the App editor, check the dedicated documentation or the App editor Quickstart:

Controls

This component can be controlled by frontend scripts using these functions:

setValue

The setValue function is meant to set or force the value of a component. This can be convenient in cases where connection is not the easiest pattern. Note that it's a bad idea to mix dynamic default value and setValue together.

setValue(id: string, value: any)

Time Input configuration

NameTypeConnectableTemplatableDefaultDescription
Min TimestringtruefalseThe minimum time that can be selected. If the time provided is not valid, it will set the output "validity" to false. The format is: "HH:mm".
Max TimestringtruefalseThe maximum time that can be selected. If the time provided is not valid, it will set the output "validity" to false. The format is: "HH:mm".
Default ValuestringtruefalseThe default value of the time input.
24h FormatbooleantruefalsetrueUse 24h format. Will change the format of the output of the component: HH:mm to hh:mm am/pm

Outputs

NameTypeDescription
resultstringThe date input value.
validitybooleanWhether the time is valid.