UNPKG

@syncfusion/ej2-richtexteditor

Version:
60 lines (56 loc) 1.88 kB
import { ItemModel, Toolbar as tool } from '@syncfusion/ej2-navigations'; import { IRichTextEditor, IToolbarRenderOptions } from '../base/interface'; import { IRenderer } from '../base/interface'; import { IToolbarItems, IToolbarItemModel } from '../../common/interface'; import { ServiceLocator } from '../services/service-locator'; import { RendererFactory } from '../services/renderer-factory'; /** * `Toolbar` module is used to handle Toolbar actions. */ export declare class BaseToolbar { toolbarObj: tool; /** * * @hidden * @private */ parent: IRichTextEditor; isDestroyed: boolean; protected locator: ServiceLocator; protected toolbarRenderer: IRenderer; protected renderFactory: RendererFactory; private tools; constructor(parent?: IRichTextEditor, serviceLocator?: ServiceLocator); private addEventListener; private removeEventListener; private setCssClass; private setRtl; private getClass; private getTemplateObject; /** * getObject method * * @param {string} item - specifies the string value * @param {string} container - specifies the value of string * @returns {IToolbarItemModel} - returns the model element * @hidden */ getObject(item: string, container: string): IToolbarItemModel; /** * @param {string} tbItems - specifies the string value * @param {string} container - specifies the container value * @returns {ItemModel} - retunrs the model element * @hidden */ getItems(tbItems: (string | IToolbarItems)[], container: string): ItemModel[]; private getToolbarOptions; /** * render method * * @param {IToolbarRenderOptions} args - specifies the toolbar options * @returns {void} * @hidden */ render(args: IToolbarRenderOptions): void; destroy(): void; }