SMART datagrid v.1 > Classes

Back  Forward

DataLudi.DayHoliday  class

It specifies the day which will be holiday as string array through days property. 

The day string follows the week abbreviation which has been set in grid Locale. Holiday type value is "day" in column editor setting. 

Base Classes
Holiday > DLBase
Properties
days
Inherited Properties
Holiday.background
Holiday.border
Holiday.color
Holiday.description
Inherited Methods
DLBase.assign
DLBase.getProperties
DLBase.getProperty
DLBase.setProperties
DLBase.setProperty
DLBase.toggle

 

Code -1
    var columns = [{
        editor: {
            type: "date",
            holidays: [{
                type: "day",
                days: ["Sat.", "Sun."]
            }]
        }
    },
    ...
    ];
    grid.setColumns(columns);
See Also
DateHoliday
RangeHoliday
BaseHoliday
Examples
Date Editor