UNPKG

@syncfusion/ej2-schedule

Version:

Flexible scheduling library with more built-in features and enhanced customization options similar to outlook and google calendar, allowing the users to plan and manage their appointments with efficient data-binding support.

64 lines (63 loc) 2.06 kB
import { Query, DataManager, Predicate } from '@syncfusion/ej2-data'; import { Schedule } from '../base/schedule'; /** * data module is used to generate query and data source. * * @private */ export declare class Data { dataManager: DataManager; private query; private parent; /** * Constructor for data module * * @param {Schedule} parent Accepts the schedule element instance * @param {Object | DataManager} dataSource Accepts the datasource as JSON objects or DataManager * @param {Query} query Accepts the query to process the data * @private */ constructor(parent: Schedule, dataSource?: Record<string, any>[] | DataManager, query?: Query); /** * The function used to initialize dataManager and query * * @param {Object | DataManager} dataSource Accepts the datasource as JSON objects or DataManager * @param {Query} query Accepts the query to process the data * @returns {void} * @private */ initDataManager(dataSource: Record<string, any>[] | DataManager, query: Query): void; /** * The function used to generate updated Query from schedule model * * @param {Date} startDate Accepts the start date * @param {Date} endDate Accepts the end date * @returns {void} * @private */ generateQuery(startDate?: Date, endDate?: Date): Query; /** * The function used to generate updated Query from schedule model * * @param {Date} startDate Accepts the start date * @param {Date} endDate Accepts the end date * @returns {void} * @private */ getStartEndQuery(startDate?: Date, endDate?: Date): Predicate; /** * The function used to get dataSource by executing given Query * * @param {Query} query - A Query that specifies to generate dataSource * @returns {void} * @private */ getData(query: Query): Promise<any>; /** * To destroy the crud module. * * @returns {void} * @private */ destroy(): void; }