UNPKG

@syncfusion/ej2-documenteditor

Version:

Feature-rich document editor control with built-in support for context menu, options pane and dialogs.

52 lines (51 loc) 1.59 kB
import { ContextType } from '../../document-editor/index'; import { L10n } from '@syncfusion/ej2-base'; import { DropDownList } from '@syncfusion/ej2-dropdowns'; import { DocumentEditorContainer } from '../document-editor-container'; /** * TOC Properties pane * * @private */ export declare class TocProperties { private container; element: HTMLElement; private elementId; private template1Div; private showPageNumber; private rightalignPageNumber; private hyperlink; private borderBtn; private updateBtn; private cancelBtn; private borderLevelStyle; headerDiv: HTMLElement; private closeButton; private prevContext; localObj: L10n; private isRtl; private readonly documentEditor; private readonly toolbar; constructor(container: DocumentEditorContainer, isRtl?: boolean); /** * @private * @param {boolean} enable - enable/disable table of content pane. * @returns {void} */ enableDisableElements(enable: boolean): void; private initializeTocPane; private updateTocProperties; private wireEvents; private onClose; private tocHeaderDiv; private initTemplates; private template1; private tocOptionsDiv; createDropDownButton(id: string, parentDiv: HTMLElement, iconCss: string, content: string[], selectedIndex: number): DropDownList; private contentStylesDropdown; private checkboxContent; private buttonDiv; showTocPane(isShow: boolean, previousContextType?: ContextType): void; private onInsertToc; destroy(): void; }