SMART datagrid v.1 > Classes > DateHoliday

Back  Forward

DataLudi.DateHoliday.dates  property

It specifies the date which will be holiday as Date object or array of strings. 

The date string is converted to Date object according to the format specified in datetimeFormat set in cell editor. The default format is 'yyyy/MM/dd'

Defaults to null.

Getter
function dates(): String|Date|Array
Setter
function setDates(value: String|Date|Array)
Code -1
    var columns = [{
        editor: {
            type: "date",
            holidays: [{
                type: "date",
                dates: ["2016/07/11", "2016/08/11"],
                description: "Company Workshop"
            }]
        }
    },
    ...
    ];
    grid.setColumns(columns);
See Also
datetimeFormat
RangeHoliday
DayHoliday
BaseHoliday
Examples
Date Editor