typora-copy-images-to | typora-root-url |
---|---|
./assets |
. |
DateTime
Installation
- Install the widget in your project
- Include the DateTime widget on a page where you'd like to display an independent date and time picker for a Datetime attribute. Individual widgets Date, and Time are also available, with just their specific set of properties.
- Configure the widget:
DateTime
: The attribute(s) to use for the Datetimes displayedEditable
: Should the fields be editable? (EntityisReadOnlyAttr()
will override this.)
Date Settings
-
Date Format
: the format to display the date. Follow this guide. -
Earliest Selectable Date
: The earliest date a user can select, in days relative to today. -
Earliest Date Attr
: An attribute containing the earliest date a user can select (overridesEarliest Selectable Date
) -
Start Open
: Should the control start open?
Date Restrictions
Disabled Days
: Days of the week that the user may not select.Date Entity
,Microflow
,Date Attribute
: In conjunction, these properties allow you disable a list of days. Configure a microflow Microflow, such that it returns a list of entities Date Entity, having an attribute Date Attribute. The dates present in Date Attribute will be greyed out in the picker and unavailable for the user to select.
Time Settings
Time Format
: The format to display the time. Follow this guide.Interval
: Interval of times to select (in minutes)Earliest Selectable Time
: Enter an integer to have the earliest selectable time be relative to now, or a 24h time.
Time Restrictions
Time Entity, Times Microflow, Time Attribute
: In conjunction, these properties allow you disable a list of days. Configure a microflow Times Microflow, such that it returns a list of entities Time Entity, having an attribute Time Attribute. The times present in Time Attribute will be greyed out in the picker and unavailable for the user to select.
Disabled Times
: Comma-separated list of times, in 24h format.
Typical usage scenario
- For better control over the UI when a user needs to pick a date or time.
Known Limitations
- none at this time.
Based on the Mendix Widget Boilerplate
See AppStoreWidgetBoilerplate for an example