BoldSign®Effortlessly integrate e-signatures into your app with the BoldSign® API. Create a sandbox account!
<style>
.e-dialog .e-dlg-content {
padding: 20px;
border: 3px solid yellow;
}
.e-dialog.e-popup {
border: 3px solid red;
padding: 20px;
}
</style> |
<style>
.e-dialog .e-dlg-header-content + .e-dlg-content {
padding: 50px;
border: 3px solid yellow;
}
. . .
</style> |
<template>
<div>
<ejs-button id="modalBtn" v-on:click.native="btnClick"
>Open Dialog</ejs-button
>
<div
id="list"
class="control-section;"
style="height: 500px; position: relative"
></div>
</div>
</template>
<style>
/* This will set the padding and border for the dialog content wrapper element. */
.e-dialog .e-dlg-content {
padding: 100px;
border: 2px solid red;
}
/* This is to set the border for the contents in the template */
.dialogContent {
border: 2px solid yellow;
}
body {
height: 500px;
}
</style>
<script>
import Vue from "vue";
import { DialogPlugin } from "@syncfusion/ej2-vue-popups";
import { Dialog } from "@syncfusion/ej2-popups";
import { ButtonPlugin } from "@syncfusion/ej2-vue-buttons";
Vue.use(DialogPlugin);
Vue.use(ButtonPlugin);
let myDialog;
var contentTemplateVue = Vue.component("demo2", {
template:
'<div class="dialogContent"><div> <span class="dialogText">Greetings Nancy! When will you share me the source files of the project?</span></div></div>',
data() {
return {
data: {},
};
},
});
export default {
data: function () {
return {};
},
mounted: function () {},
methods: {
btnClick: function () {
this.myDialog = new Dialog({
width: "1000px",
height: "700px",
content: function () {
return { template: contentTemplateVue };
},
});
this.myDialog.appendTo("#list");
},
},
};
</script> |