Time#
To configure the widget, you need to perform the following actions:
The Time widget displays a field for the User to input a text value, allowing for hints and restrictions to ensure only valid values are entered.
To configure the element, click on the edit icon .
A pop-up window “Element Settings” will open:
Widget Configuration Fields#
Fill in the necessary fields to configure the widget.
“Required” – a checkbox that is manually filled with the left mouse button. It is intended to color the field red if the User has not filled in this widget.
“Visible Name” – a text field that is manually filled in using the keyboard. It allows you to specify a name for the widget.
“Parameter Name in Task” – a text field that is manually filled in using the keyboard. This field displays the text corresponding to the value of the specified Parameter of the selected Task. The User can change this value in the text field, and after saving the form, the new value will be recorded in the specified Parameter of the selected Task. This means that by making changes in the text field, the User can update the information in the Task, simply by entering a new value and saving the changes.
“Placeholder” – a text field that is manually filled in using the keyboard. It allows you to specify a placeholder text that will be displayed in the input field until the user starts entering a value.
“Class” – a text field that is manually filled in using the keyboard. It allows you to specify a CSS class that will be applied to the element. This allows you to change the style of the widget, such as color, size, or font.
“Regular Expression (Regexp)” – a text field that is manually filled in using the keyboard. It allows you to specify a regular expression for input validation.
“Validation Error Message” – a text field that is manually filled in using the keyboard. It allows you to specify the text that will be displayed to the User if the entered value fails validation.
“Hint” – a text field that is manually filled in using the keyboard. It allows you to specify an additional hint that will help the user understand what exactly needs to be entered.
“Default Value” – a text field that is manually filled in using the keyboard. It allows you to specify a value that will be displayed in the input field by default.
Example of Filling#
| Field Name | Value |
| Checkbox "Required" | |
| Visible Name | Start Time of the Lesson |
| Parameter Name in Task | start_time |
| Placeholder | HH:MM |
| Class | time-input |
| Regular Expression (Regexp) | ^([01]?\d|2[0-3]):([0-5]\d)$ |
| Validation Error Message | Please enter the time in HH:MM format (e.g., 14:30) |
| Hint | Specify the start time of the lesson in HH:MM format. |
| Default Value | 09:00 |
Result:
Example of Time Selection#
Time selection is only possible through a graphical interface element that displays hours and minutes. It allows the User to select a time using a special wheel (spinner) to rotate the hour and minute scales:
The User can navigate through the hours and minutes using the time scales. It provides a convenient and intuitive interface, especially for Users unfamiliar with the time format.