mirror of https://github.com/artf/grapesjs.git
3 changed files with 40 additions and 26 deletions
@ -1,24 +0,0 @@ |
|||
export default { |
|||
stylePrefix: 'mdl-', |
|||
|
|||
title: '', |
|||
|
|||
content: '', |
|||
|
|||
// Close modal on interact with backdrop
|
|||
backdrop: true, |
|||
|
|||
// Avoid rendering the default modal.
|
|||
custom: false, |
|||
|
|||
/** |
|||
* Extend ModalView object (view/ModalView.js) |
|||
* @example |
|||
* extend: { |
|||
* template() { |
|||
* return '<div>...New modal template...</div>'; |
|||
* }, |
|||
* }, |
|||
*/ |
|||
extend: {}, |
|||
}; |
|||
@ -0,0 +1,38 @@ |
|||
export interface ModalConfig { |
|||
stylePrefix?: string; |
|||
title?: string; |
|||
content?: string; |
|||
/** |
|||
* Close modal on interact with backdrop. |
|||
* @default true |
|||
*/ |
|||
backdrop?: boolean; |
|||
|
|||
/** |
|||
* Avoid rendering the default modal. |
|||
* @default false |
|||
*/ |
|||
custom?: boolean; |
|||
|
|||
/** |
|||
* Extend ModalView object (view/ModalView.js) |
|||
* @example |
|||
* extend: { |
|||
* template() { |
|||
* return '<div>...New modal template...</div>'; |
|||
* }, |
|||
* }, |
|||
*/ |
|||
extend?: Record<string, any>; |
|||
} |
|||
|
|||
const config: ModalConfig = { |
|||
stylePrefix: 'mdl-', |
|||
title: '', |
|||
content: '', |
|||
backdrop: true, |
|||
custom: false, |
|||
extend: {}, |
|||
}; |
|||
|
|||
export default config; |
|||
Loading…
Reference in new issue