UNPKG

@mescius/dspdfviewer

Version:
41 lines (39 loc) 1.4 kB
//@ts-ignore import React, { Component } from 'react'; //@ts-ignore import { PropertyEditorProps } from '@grapecity/core-ui'; import { GcPdfViewerEditorsLocalization } from './../Annotations'; /// <reference path="../../vendor/i18next.d.ts" /> //@ts-ignore import { i18n } from 'i18next'; export declare type CancelableEditorProps = PropertyEditorProps & { localization: GcPdfViewerEditorsLocalization; textareaAlwaysVisible?: boolean; in17n: i18n; }; export declare class CancelableEditorBase extends Component<CancelableEditorProps, any> { protected _outer: HTMLSpanElement; protected _mounted: boolean; //@ts-ignore getEditorControls(): JSX.Element[]; onApply(): void; onCancel(): void; setControlsVisibility(_isVisible: boolean): void; getIsLocked(): boolean; getIsContentsLocked(): boolean; getEditButtonLabel(): string; protected isValueDirty(): boolean; componentDidMount(): void; componentWillUnmount(): void; //@ts-ignore //@ts-ignore render(): React.JSX.Element; raiseValueChanged(isDirty: boolean, forceRenderComponent?: boolean): void; handleKeyboardEvent(e: KeyboardEvent): boolean; finishEdit(): void; cancelEdit(): void; private _onEditContentsClick; private _onApplyClick; private _onCancelClick; private _updateButtons; private _showControls; }