The tbDateEditor component is date input. It uses the datetime-local HTML5 attribute, but if this components fails it falls back to a Angular UI Bootstrap Datepicker.

Similar to tbDateTimeEditor but without a timepicker.

It uses the TubularModel to retrieve column or field information.

Component's attributes

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".

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.