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 nameTypeProperty description
typedateType of cell template
date?DateDate object, optional
format?Intl.DateTimeFormatFormats date, if undefined formats date according to the currect browser locale