SMART datagrid v.1 > Classes

Back  Forward

DataLudi.RangeHoliday  class

It specifies the dates which will be holiday by the range of startDate and endDate

The holiday will be specified as the table below depending on whether startDate, endDate have been set. Holiday type value is "range" in column editor setting. 

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

 

Table-1  Range specification mode
startDateendDateExplanation
SetSetstartDate <= endDate. The dates between starteDate and endDate are holidays.
SetSetstartDate > endDate. The dates less than starteDate or greater than endDate are all holidays.
SetUnsetThe dates less than startDate are holidays.
UnsetSetThe dates greater than endDate are holidays.
Code -1
    var columns = [{
        editor: {
            type: "date",
            holidays: [{
                type: "range",
                startDate: "2016/07/11",
                endDate: "2016/07/13",
                description: "Company Workshop"
            }]
        }
    },
    ...
    ];
    grid.setColumns(columns);
See Also
DateHoliday
DayHoliday
BaseHoliday
Examples
Date Editor