@syncfusion/ej2-gantt
Version:
Essential JS 2 Gantt Component
57 lines (56 loc) • 1.26 kB
TypeScript
/**
* To render holidays and weekends in Gantt
*/
import { Gantt } from '../base/gantt';
export declare class NonWorkingDay {
private parent;
nonworkingContainer: HTMLElement;
private holidayContainer;
private weekendContainer;
private weekendWidthUpdated;
constructor(gantt: Gantt);
/**
* Method append nonworking container
*
* @returns {void} .
*/
private createNonworkingContainer;
/**
* calculation for holidays rendering.
*
* @returns {void} .
* @private
*/
renderHolidays(): void;
/**
* Method to return holidays as html string
*
* @returns {HTMLElement} .
*/
private getHolidaysElement;
/**
* @returns {void} .
* @private
*/
renderWeekends(): void;
/**
* Method to get weekend html string
*
* @returns {HTMLElement} .
*/
private getWeekendElements;
private updateHolidayLabelHeight;
/**
* Method to update height for all internal containers
*
* @returns {void} .
* @private
*/
updateContainerHeight(): void;
/**
* Method to remove containers of holiday and weekend
*
* @returns {void} .
*/
removeContainers(): void;
}