A date, or a date and time, edited in a display zone and reported as an instant.
More...
#include <view.hpp>
|
| Prop< std::optional< morph::time::Timestamp > > | value |
| | The instant shown; nullopt (or an empty Timestamp) shows an empty field.
|
| std::function< void(std::optional< morph::time::Timestamp >)> | onChange |
| | Called with the instant the user entered, or nullopt when they cleared the field.
|
| DateMode | mode = DateMode::DateTime |
| | Date or date and time; set once.
|
| int | offsetMinutes = 0 |
| | The display zone's offset from UTC, in minutes; set once.
|
| Prop< std::string > | label |
| | The field's label: its visible caption while showLabel; a form's cell draws it otherwise, beside the input. Empty: none.
|
| bool | showLabel = false |
| | Whether the input draws label as a visible caption itself; set once. A form leaves it false, since its cell draws the caption.
|
| FieldState | field {} |
| | Read-only, required, errors and stale.
|
| Common | common {} |
| | Visibility, enablement, layout, drag-and-drop.
|
A date, or a date and time, edited in a display zone and reported as an instant.
Definition at line 914 of file view.hpp.
◆ value
The instant shown; nullopt (or an empty Timestamp) shows an empty field.
Definition at line 916 of file view.hpp.
◆ onChange
Called with the instant the user entered, or nullopt when they cleared the field.
Definition at line 918 of file view.hpp.
◆ mode
Date or date and time; set once.
Definition at line 920 of file view.hpp.
◆ offsetMinutes
| int morph::ui::DateTimeInput::offsetMinutes = 0 |
The display zone's offset from UTC, in minutes; set once.
Definition at line 922 of file view.hpp.
◆ label
| Prop<std::string> morph::ui::DateTimeInput::label |
The field's label: its visible caption while showLabel; a form's cell draws it otherwise, beside the input. Empty: none.
Definition at line 925 of file view.hpp.
◆ showLabel
| bool morph::ui::DateTimeInput::showLabel = false |
Whether the input draws label as a visible caption itself; set once. A form leaves it false, since its cell draws the caption.
Definition at line 928 of file view.hpp.
◆ field
Read-only, required, errors and stale.
Definition at line 930 of file view.hpp.
◆ common
| Common morph::ui::DateTimeInput::common {} |
Visibility, enablement, layout, drag-and-drop.
Definition at line 932 of file view.hpp.
The documentation for this struct was generated from the following file: