mirror of https://github.com/artf/grapesjs.git
2 changed files with 40 additions and 12 deletions
@ -0,0 +1,27 @@ |
|||
/**{START_EVENTS}*/ |
|||
export enum ModalEvents { |
|||
/** |
|||
* @event `modal:open` Modal is opened |
|||
* @example |
|||
* editor.on('modal:open', () => { ... }); |
|||
*/ |
|||
open = 'modal:open', |
|||
|
|||
/** |
|||
* @event `modal:close` Modal is closed |
|||
* @example |
|||
* editor.on('modal:close', () => { ... }); |
|||
*/ |
|||
close = 'modal:close', |
|||
|
|||
/** |
|||
* @event `modal` Event triggered on any change related to the modal. An object containing all the available data about the triggered event is passed as an argument to the callback. |
|||
* @example |
|||
* editor.on('modal', ({ open, title, content, ... }) => { ... }); |
|||
*/ |
|||
all = 'modal', |
|||
} |
|||
/**{END_EVENTS}*/ |
|||
|
|||
// need this to avoid the TS documentation generator to break
|
|||
export default ModalEvents; |
|||
Loading…
Reference in new issue