@syncfusion/ej2-documenteditor
Version:
Feature-rich document editor control with built-in support for context menu, options pane and dialogs.
163 lines (162 loc) • 5.26 kB
TypeScript
import { L10n } from '@syncfusion/ej2-base';
import { Tab } from '@syncfusion/ej2-navigations';
import { TextProperties } from './text-properties-pane';
import { ImageProperties } from './image-properties-pane';
import { ItemModel, DropDownButton } from '@syncfusion/ej2-splitbuttons';
import { DocumentEditorContainer } from '../document-editor-container';
/**
* Represents table properties
*
* @private
*/
export declare class TableProperties {
private container;
private tableProperties;
propertiesTab: Tab;
private elementId;
tableTextProperties: TextProperties;
imageProperty: ImageProperties;
private shadingBtn;
private borderBtn;
private borderSize;
private tableOutlineBorder;
private tableAllBorder;
private tableCenterBorder;
private tableLeftBorder;
private tableCenterVerticalBorder;
private tableRightBorder;
private tableTopBorder;
private tableCenterHorizontalBorder;
private tableBottomBorder;
private horizontalMerge;
private insertRowAbove;
private insertRowBelow;
private insertColumnLeft;
private insertColumnRight;
private deleteRow;
private deleteColumn;
private topMargin;
private bottomMargin;
private leftMargin;
private rightMargin;
private alignBottom;
private alignCenterHorizontal;
private alignTop;
private borderSizeColorElement;
private borderSizeButton;
private borderStyleDiv;
element: HTMLElement;
private prevContext;
private isTopMarginApply;
private isRightMarginApply;
private isBottomMarginApply;
private isLeftMarginApply;
private borderColor;
private parentElement;
localObj: L10n;
private isRtl;
private groupButtonClass;
private onOutlineBorderClickHandler;
private onAllBorderHandler;
private onInsideBorderHandler;
private onLeftBorderHandler;
private onVerticalBorderHandler;
private onRightBorderHandler;
private onTopBorderHandler;
private onHorizontalBorderHandler;
private onBottomBorderHandler;
private onInsertRowAboveHandler;
private onInsertRowBelowHandler;
private onInsertColumnLeftHandler;
private onInsertColumnRightHandler;
private onDeleteRowHandler;
private onDeleteColumnHandler;
private onMergeCellHandler;
private applyAlignTopHandler;
private applyAlignBottomHandler;
private applyAlignCenterHorizontalHandler;
private onTopMarginHandler;
private onRightMarginHandler;
private onLeftMarginHandler;
private onBottomMarginHandler;
private onTopMarginClickHandler;
private onTopMarginBlurHandler;
private onRightMarginClickHandler;
private onRightMarginBlurHandler;
private onLeftMarginClickHandler;
private onLeftMarginBlurHandler;
private onBottomMarginClickHandler;
private onBottomMarginBlurHandler;
private readonly documentEditor;
constructor(container: DocumentEditorContainer, imageProperty: ImageProperties, isRtl?: boolean);
private initializeTablePropPane;
/**
* @private
* @param {boolean} enable - enable/disable table properties pane.
* @returns {void}
*/
enableDisableElements(enable: boolean): void;
private addTablePropertyTab;
private onTabSelection;
private wireEvent;
private unWireEvent;
private onTopMarginClick;
private onTopMarginBlur;
private onRightMarginClick;
private onRightMarginBlur;
private onLeftMarginClick;
private onLeftMarginBlur;
private onBottomMarginClick;
private onBottomMarginBlur;
private getBorder;
private onOutlineBorder;
private onAllBorder;
private onInsideBorder;
private onLeftBorder;
private onVerticalBorder;
private onRightBorder;
private onTopBorder;
private onHorizontalBorder;
private onBottomBorder;
private onTopMargin;
private onBottomMargin;
private onLeftMargin;
private onRightMargin;
private applyTopMargin;
private applyBottomMargin;
private applyLeftMargin;
private applyRightMargin;
private applyAlignTop;
private applyAlignBottom;
private applyAlignCenterHorizontal;
private onMergeCell;
private onInsertRowAbove;
private onInsertRowBelow;
private onInsertColumnLeft;
private onInsertColumnRight;
private onDeleteRow;
private onDeleteColumn;
onSelectionChange(): void;
private changeBackgroundColor;
private initFillColorDiv;
private initBorderStylesDiv;
private initCellDiv;
private initInsertOrDelCell;
private initCellMargin;
private initAlignText;
private createCellMarginTextBox;
private createBorderSizeDropDown;
private onBorderSizeChange;
private createDropdownOption;
createDropDownButton(id: string, styles: string, parentDiv: HTMLElement, iconCss: string, content: string, items?: ItemModel[], target?: HTMLElement): DropDownButton;
private createButtonTemplate;
private createColorPickerTemplate;
showTableProperties(isShow: boolean, propertyType: string): void;
/**
* @private
* @returns {void} - Update tab container height.
*/
updateTabContainerHeight(): void;
private removeHTMLDomElement;
destroy(): void;
}