The tbDateTimeEditor
component is date/time input. It uses the datetime-local
HTML5 attribute, but if this
components fails it falls back to Angular UI Bootstrap Datepicker (time functionality is unavailable).
It uses the TubularModel
to retrieve column or field information.
Param | Type | Details |
---|---|---|
name | string |
Set the field name. |
value | object |
Set the value. |
isEditing | boolean |
Indicate if the field is showing editor. |
showLabel | boolean |
Set if the label should be display. |
label | string |
Set the field's label otherwise the name is used. |
help | string |
Set the help text. |
required | boolean |
Set if the field is required. |
format | string |
Indicate the format to use, default "yyyy-MM-dd HH:mm". |
readOnly | boolean |
Set if the field is read-only. |
min | number |
Set the minimum value. |
max | number |
Set the maximum value. |
defaultValue | string |
Set the default value. |