onScaleAdd
Description
Fires after a single view unit (column, section, day cell etc.) has been rendered in the scheduler
onScaleAdd: (unit: HTMLElement, date: object) => void
Parameters
unit- (required) HTMLElement - an HTML object of the related view unitdate- (required) object - the date of the unit
Example
scheduler.attachEvent("onScaleAdd", function (unit, date){
//any custom logic here
});
Details
Available views have different units:
- Day view - a column with a day (the whole view);
- Week view - a column with a day;
- Month view - a cell with a day;
- Units - a section;
- Timeline - a section;
- Year - a cell with a day.
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.