This template formats Date
object and displays default browser date picker in edit mode.
Implementation
- Open
DateCell
implementation on github
Interface declaration
interface DateCell extends Cell {
type: 'date';
date?: Date;
format?: Intl.DateTimeFormat;
}
Property name | Type | Property description |
---|---|---|
type | date | Type of cell template |
date? | Date | Date object, optional |
format? | Intl.DateTimeFormat | Formats date, if undefined formats date according to the currect browser locale |