UNPKG

@skyux/modals

Version:

This library was generated with [Nx](https://nx.dev).

19 lines (18 loc) 731 B
import { SkyModalCloseArgs } from './modal-close-args'; /** * Properties about the modal close action and a method to close the modal. */ export declare class SkyModalBeforeCloseHandler { /** * The object that would be emitted by a modal's `closed` event. This object * can be used to determine whether to prompt the user for confirmation, such * as when the user closes a modal form after entering data. */ readonly closeArgs: SkyModalCloseArgs; /** * Function to call to close the modal. Neglecting to call this function * effectively cancels the close modal action. */ readonly closeModal: () => void; constructor(closeModal: () => void, closeArgs: SkyModalCloseArgs); }