Time¶
Time” type generates a simple <input>
field, which provides a date picker.
It corresponds with the TCA type='inputDateTime'
(default) and eval='time'
.
Properties¶
- default
| Required: false | Type: string | Default: ‘’ |
Default value set if a new record is created.
- displayAge
| Required: false | Type: boolean | Default: false |
If set, enables the display of the age (p.e. “2015-08-30 (-27 days)”) of date fields.
- range
| Required: false | Type: array | Default: ‘’ |
An array which defines an integer range within which the value must be. Keys:
- lower (string in format
H:i
) - Defines the lower integer value. Default: 0.
- upper (string in format
H:i
) - Defines the upper integer value. Default: 100.
It is allowed to specify only one of both of them.
Example:
range: lower: '00:01' upper: '29:59'
- lower (string in format
- required
| Required: false | Type: boolean | Default: ‘false’ |
If set, the field will become mandatory.
- size
| Required: false | Type: integer | Default: ‘20’ |
Abstract value for the width of the
<input>
field.- trim
| Required: false | Type: boolean | Default: ‘false’ |
If set, the PHP trim function is applied on the field’s content.