UNPKG

devexpress-reporting

Version:

DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.

66 lines (65 loc) 2.77 kB
/** * DevExpress HTML/JS Reporting (viewer\widgets\pictureEditor\_pictureEditorToolbarItem.d.ts) * Version: 24.2.6 * Build date: Mar 18, 2025 * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * License: https://www.devexpress.com/Support/EULAs/universal.xml */ import { ArrayPropertyChangedEventArgs, BaseModel, PropertyChangedEventArgs } from '@devexpress/analytics-core/analytics-serializer-native'; import dxPopup, { ContentReadyEvent, HiddenEvent, Properties, ShownEvent } from 'devextreme/ui/popup'; import { PictureEditorActionId } from './_pictureEditorTypes'; export declare class PictureEditorToolbarItem extends BaseModel implements IPictureEditorToolbarItem { constructor(options: IPictureEditorToolbarItemOptions); onPropertyChanged(args: PropertyChangedEventArgs<any> | ArrayPropertyChangedEventArgs<any>): void; dispose(): void; id: PictureEditorActionId; icon: string; title: string; active: boolean; action: (e: any, model: any) => void; } export declare class PictureEditorToolbarItemWithPopup extends PictureEditorToolbarItem implements IPictureEditorToolbarItemWithPopup { private _popup; constructor(options: IPictureEditorToolbarItemWithTemplateOptions<IPictureEditorActionPopupOptions>); onPropertyChanged(args: PropertyChangedEventArgs<PictureEditorToolbarItemWithPopup> | ArrayPropertyChangedEventArgs<PictureEditorToolbarItemWithPopup>): void; dispose(): void; template: string; templateOptions: IPictureEditorActionPopup; } export interface IPictureEditorToolbarItem extends IPictureEditorToolbarItemOptions { dispose: () => void; active: boolean; } export interface IPictureEditorToolbarItemWithPopup extends IPictureEditorToolbarItemWithTemplateOptions<IPictureEditorActionPopup> { dispose: () => void; } export interface IPictureEditorToolbarItemWithTemplateOptions<T = unknown> extends IPictureEditorToolbarItemOptions { template?: string; templateOptions?: T; } export interface IPictureEditorToolbarItemOptions { id: PictureEditorActionId; icon: string; action?: (e: any, model: any) => void; title: string; } export interface IPictureEditorActionPopup extends IPictureEditorActionPopupOptions { component: dxPopup<Properties>; onContentReady: (event: ContentReadyEvent) => void; onShown: (event: ShownEvent) => void; onHidden: (e: HiddenEvent) => void; hideOnOutsideClick: (e: { target: any; }) => boolean; } export interface IPictureEditorActionPopupOptions { width: string; height: string; contentTemplate: string; contentData: any; container: string; target: string; boundary: string | any; getPositionTarget: () => HTMLElement; visible: boolean; }