mirror of https://github.com/artf/grapesjs.git
nocodeframeworkdrag-and-dropsite-buildersite-generatortemplate-builderui-builderweb-builderweb-builder-frameworkwebsite-builderno-codepage-builder
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
347 B
21 lines
347 B
import ModalModule from '..';
|
|
import { ModuleModel } from '../../abstract';
|
|
|
|
export default class Modal extends ModuleModel<ModalModule> {
|
|
defaults() {
|
|
return {
|
|
title: '',
|
|
content: '',
|
|
attributes: {},
|
|
open: false,
|
|
};
|
|
}
|
|
|
|
open() {
|
|
this.set('open', true);
|
|
}
|
|
|
|
close() {
|
|
this.set('open', false);
|
|
}
|
|
}
|
|
|