<ej-dialog id="basicDialog" title="Confirmation Dialog" containment=".control" min-height="215" is-responsive="true" show-footer="true" footer-template-id="sample">
<e-content-template>
<div>
<div class="cnt">
Do you really leave the session?
</div>
</div>
</e-content-template>
</ej-dialog>
//adding Footer Section
<script id="sample" type="text/x-jsrender">
<div style="float:right">
<button id="btn1" style="text-align:center;width:60px;margin:auto;" onclick="Close()"> Ok</button>
<button id="btn2" style="margin-top:5px;margin-left:30px;margin-right:20px;text-align:center;width:60px;">Cancel</button>
</div>
<div class="condition" style="float:left; margin-left:15px;margin-top:5px">
<input type="checkbox" />Dont ask me this again<br/>
</div>
</script>
<script type="text/javascript">
function Close() {
$("#basicDialog").ejDialog("close");
}
</script> |
<ej-button id="btnOpen" text="Click to open dialog" click="onclick" />
<ej-dialog id="basicDialog" title="Confirmation Dialog" containment=".control" min-height="215" is-responsive="true" show-on-init="false" show-footer="true" footer-template-id="sample">
</ej-dialog>
<script type="text/javascript">
function onclick() {
$("#basicDialog").ejDialog("open");
$("#btnOpen").hide();
}
</script> |