@docsvision/webclient
Version:
Type definitions for DocsVision WebClient scripts and extensions.
28 lines (27 loc) • 1.23 kB
TypeScript
import { SavingButtonsParams } from "@docsvision/webclient/Platform/SavingButtons";
import { BaseControlState } from "@docsvision/webclient/System/BaseControl";
import { BaseControlImpl } from "@docsvision/webclient/System/BaseControlImpl";
import { RequestHelper } from "@docsvision/webclient/System/RequestHelper";
import React from "react";
/** @internal */
export interface ISavingButtonsState extends SavingButtonsParams, BaseControlState {
/** Выполнить сохранение */
performSave: Function;
/** Выполнить отмену */
performCancel: Function;
/** Сохраняется ли карточка в данный момент */
cardIsSaving: boolean;
savingHelper: RequestHelper;
}
export interface SavingButtonsState extends ISavingButtonsState {
}
/** @internal */
export declare type SavingButtonsImplState = ISavingButtonsState;
/** @internal */
export declare class SavingButtonsImpl extends BaseControlImpl<SavingButtonsParams, ISavingButtonsState> {
constructor(props: SavingButtonsParams, state: ISavingButtonsState);
protected handleClick(event: React.MouseEvent): void;
onSave(): void;
onCancel(): void;
renderControl(): JSX.Element;
}