2021-10-31 06:31:34 +08:00
|
|
|
import Component from '../Component';
|
|
|
|
import type Mithril from 'mithril';
|
|
|
|
import type ModalManagerState from '../states/ModalManagerState';
|
|
|
|
interface IModalManagerAttrs {
|
|
|
|
state: ModalManagerState;
|
|
|
|
}
|
2021-05-13 07:29:46 +08:00
|
|
|
/**
|
|
|
|
* The `ModalManager` component manages a modal dialog. Only one modal dialog
|
|
|
|
* can be shown at once; loading a new component into the ModalManager will
|
|
|
|
* overwrite the previous one.
|
|
|
|
*/
|
2021-10-31 06:31:34 +08:00
|
|
|
export default class ModalManager extends Component<IModalManagerAttrs> {
|
|
|
|
view(): JSX.Element;
|
|
|
|
oncreate(vnode: Mithril.VnodeDOM<IModalManagerAttrs, this>): void;
|
|
|
|
animateShow(readyCallback: () => void): void;
|
2021-05-13 07:29:46 +08:00
|
|
|
animateHide(): void;
|
|
|
|
}
|
2021-10-31 06:31:34 +08:00
|
|
|
export {};
|