Ticket #312 (new enhancement)
Define format of a time field
| Reported by: | sdm | Owned by: | mpo |
|---|---|---|---|
| Priority: | major | Milestone: | 0.5 |
| Component: | modules/kauri-forms | Version: | |
| Keywords: | format time | Cc: | kauri-discuss@… |
Description
I think it would be useful if there was a possibility to define the format of a time field.
For example, an application might want to use times that only contain hours and minutes, but not seconds.
Example fconf (just a thought):
'time1':{
base: 'time',
control: {
base: 'input-control',
format: 'HH:mm'
}
}
If a format of HH:mm is defined, an input of 12:13:15 should be considered invalid, but 12:13 is a valid value. The default format would be HH:mm:ss, but if specified, the user defined format would be used instead.
Note: See
TracTickets for help on using
tickets.
another option would be to have the default parsing cope with seconds not being entered (and just adding assuming :00)