UNPKG

@syncfusion/ej2-base

Version:

A common package of Essential JS 2 base libraries, methods and class definitions

75 lines (74 loc) 1.94 kB
/** * To detect the changes for inner properties. * * @private * @returns {void} ? */ export declare class ChildProperty<T> { private parentObj; private controlParent; private propName; private isParentArray; protected isComplexArraySetter: boolean; protected properties: { [key: string]: Object; }; protected changedProperties: { [key: string]: Object; }; protected childChangedProperties: { [key: string]: Object; }; protected oldProperties: { [key: string]: Object; }; protected finalUpdate: Function; private callChildDataBind; constructor(parent: T, propName: string, defaultValue: Object, isArray?: boolean); /** * Updates the property changes * * @param {boolean} val ? * @param {string} propName ? * @returns {void} ? */ private updateChange; /** * Updates time out duration * * @returns {void} ? */ private updateTimeOut; /** * Clears changed properties * * @returns {void} ? */ private clearChanges; /** * Set property changes * * @param {Object} prop ? * @param {boolean} muteOnChange ? * @returns {void} ? */ protected setProperties(prop: Object, muteOnChange: boolean): void; /** * Binds data * * @returns {void} ? */ protected dataBind(): void; /** * Saves changes to newer values * * @param {string} key ? * @param {Object} newValue ? * @param {Object} oldValue ? * @param {boolean} restrictServerDataBind ? * @returns {void} ? */ protected saveChanges(key: string, newValue: Object, oldValue: Object, restrictServerDataBind?: boolean): void; protected serverDataBind(key: string, value: Object, isSaveChanges?: boolean, action?: string): void; protected getParentKey(isSaveChanges?: boolean): string; }