UNPKG

@syncfusion/ej2-pivotview

Version:

The pivot grid, or pivot table, is used to visualize large sets of relational data in a cross-tabular format, similar to an Excel pivot table.

93 lines (92 loc) 2.37 kB
import { PivotView } from '../../pivotview/base/pivotview'; /** * Module to render Conditional Formatting Dialog */ /** @hidden */ export declare class ConditionalFormatting { /** @hidden */ parent: PivotView; /** * Internal variables. */ private parentID; private fontColor; private backgroundColor; private newFormat; /** Constructor for conditionalformatting module * * @param {PivotView} parent - Instance of pivot table. */ constructor(parent: PivotView); /** * To get module name. * * @returns {string} - Module name. */ protected getModuleName(): string; private createDialog; private beforeOpen; private addButtonClick; private applyButtonClick; private cancelButtonClick; private refreshConditionValues; private addFormat; private createDialogElements; private renderDropDowns; private conditionChange; private onCheckChange; private fontNameChange; private fontSizeChange; private measureChange; private renderColorPicker; private backColorChange; private fontColorChange; private toggleButtonClick; /** * To check is Hex or not. * * @param {string} h - It represent the hex value. * @returns {boolean} - It returns the isHex value as boolean. * @hidden */ isHex(h: string): boolean; /** * To convert hex to RGB. * * @param {string} hex - hex value. * @returns { { r: number, g: number, b: number } | null } - Hex value. * @hidden */ hexToRgb(hex: string): { r: number; g: number; b: number; } | null; /** * To convert color to hex. * * @param {string} colour - It contains the color value. * @returns {string} - It returns the colour Name To Hex. * @hidden */ colourNameToHex(colour: string): string; private removeDialog; private removeEventListeners; private destroyColorPickers; private destroyDropDowns; private destroyOtherComponents; /** * To create Conditional Formatting dialog. * * @returns {void} * @hidden */ showConditionalFormattingDialog(): void; /** * To destroy the Conditional Formatting dialog * * @returns {void} * @hidden */ destroy(): void; }