piral-modals
Version:
Plugin for the display of modal dialogs in Piral.
7 lines (6 loc) • 490 B
TypeScript
import { GlobalStateContext } from 'piral-core';
import { ModalRegistration, OpenModalDialog } from './types';
export declare function openModal(ctx: GlobalStateContext, dialog: OpenModalDialog): void;
export declare function closeModal(ctx: GlobalStateContext, dialog: OpenModalDialog): void;
export declare function registerModal(ctx: GlobalStateContext, name: string, value: ModalRegistration): void;
export declare function unregisterModal(ctx: GlobalStateContext, name: string): void;