SMART datagrid v.1 > Classes > DateCellEditor

Back  Forward

DataLudi.DateCellEditor.holidays  property

It specifies the dates which cannot be clicked by user in calendar list. 

There are four types such as Date of specifying the date, Day of specifying the day, Range of specifying the continuous range, Base of specifying the dates back and forth based on a specific date. 

Defaults to null.

Getter
function holidays(): Array
Setter
function setHolidays(value: Array)
Code -1
    var columns = [{
		name: "FirstDate",
		fieldName: "first_date",
		width: "120",
		styles: {
		    datetimeFormat: "yyyy-MM-dd",
		    textAlignment: "center"
		},
		editor: {
		    type: "date",
		    holidays: [{
		        type: "day",
		        days: ["Days"],
		        color: "#ff0000",
		        description: "Holiday"
		    }, {
		        type:"date",
		        dates:["2016/05/05", "2016/05/14"],
		        color: "#00ff00",
		    }]
		}
	},
	...
	]
	grid.setColumns(columns);
See also
DateHoliday
RangeHoliday
DayHoliday
BaseHoliday
Examples
DateEditor