UNPKG

devexpress-richedit

Version:

DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.

77 lines (76 loc) 2.94 kB
import { dxElement } from 'devextreme/core/element'; import dxButton from 'devextreme/ui/button'; import { Properties as dxButtonOptions } from 'devextreme/ui/button'; import dxMenu from 'devextreme/ui/menu'; import { Properties as dxMenuOptions } from 'devextreme/ui/menu'; import { Properties as dxNumberBoxOptions } from 'devextreme/ui/number_box'; import { Properties as dxSelectBoxOptions } from 'devextreme/ui/select_box'; import dxTabPanel from 'devextreme/ui/tab_panel'; import { event } from 'devextreme/events/index'; import { Properties as dxColorBoxOptions } from 'devextreme/ui/color_box'; import Widget from 'devextreme/ui/widget/ui.widget'; type ComponentInitialized<TProperties> = (e: { component?: Widget<TProperties>; element?: dxElement; }) => any; export type EditorValueChangedHandler<TProperties> = (e: { component?: Widget<TProperties>; element?: dxElement; model?: any; value?: any; previousValue?: any; event?: event; }) => any; export type EditorStateChangedHandler<TProperties> = (e: { component?: Widget<TProperties>; element?: dxElement; model?: any; }) => any; export type ButtonClickHandler = (e: { component?: dxButton; element?: dxElement; model?: any; event?: event; validationGroup?: any; }) => any | string; export type ButtonInitializedHandler = ComponentInitialized<dxButtonOptions>; export type MenuItemRenderedHandler = (e: { component?: dxMenu; element?: dxElement; model?: any; itemData?: any; itemElement?: dxElement; itemIndex?: number; }) => any; export type MenuItemClickHandler = (e: { component?: dxMenu; element?: dxElement; model?: any; itemData?: any; itemElement?: dxElement; itemIndex?: number; event?: event; }) => any | string; export type MenuInitializedHandler = ComponentInitialized<dxMenuOptions>; export type SelectBoxInitializedHandler = ComponentInitialized<dxSelectBoxOptions>; export type SelectBoxValueChangedHandler = EditorValueChangedHandler<dxSelectBoxOptions>; export type TabPanelTitleClickHandler = (e: { component?: dxTabPanel; element?: dxElement; model?: any; itemData?: any; itemElement?: dxElement; }) => any | string; export type TabPanelSelectionChangedHandler = (e: { component?: dxTabPanel; element?: dxElement; model?: any; addedItems?: Array<any>; removedItems?: Array<any>; }) => any; export type NumberBoxInitializedHandler = ComponentInitialized<dxNumberBoxOptions>; export type NumberBoxValueChangedHandler = EditorValueChangedHandler<dxNumberBoxOptions>; export type ColorBoxInitializedHandler = ComponentInitialized<dxColorBoxOptions>; export type ColorBoxValueChangedHandler = EditorValueChangedHandler<dxColorBoxOptions>; export type ColorBoxStateChangedHandler = EditorStateChangedHandler<dxColorBoxOptions>; export {};