SMART datagrid v.1 > Classes

Back  Forward

DataLudi.BaseHoliday  class

It specifies the before and after period as holiday based on baseDate

Holiday type value is "base" in column editor setting. 

Base Classes
Holiday > DLBase
Properties
baseDate
nextDays
prevDays
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: "base",
                baseDate: "2016/07/11",
                prevDays: 2,
                nextDays: 3,
                description: "Company Workshop"
            }]
        }
    },
    ...
    ];
    grid.setColumns(columns);
See Also
DateHoliday
DayHoliday
RangeHoliday
Examples
Date Editor