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.
|
document.addEventListener('DOMContentLoaded', () => {
|
|
'use strict';
|
|
|
|
drupalSettings.modal = new Vue({ // eslint-disable-line no-unused-vars, no-undef, max-len
|
|
el: '#vue-modal',
|
|
data: {
|
|
showModal: false,
|
|
content: 'Default Modal Text',
|
|
},
|
|
methods: {
|
|
show(content) {
|
|
this.showModal = true;
|
|
this.content = content;
|
|
},
|
|
close() {
|
|
this.showModal = false;
|
|
}
|
|
}
|
|
});
|
|
});
|