Hello guys,
I tried the following dialog configuration:
<ejs-dialog id="dialog" cssClass="w-75" target="body" visible="false" showCloseIcon="true"
header="CE Contact Info" footerTemplate="#someFooterTemplate" isModal="true">
<e-content-template>
</div>Some content...</div>
</e-content-template>
<e-dialog-animationsettings effect="Zoom" duration="300" delay="0"></e-dialog-animationsettings>
</ejs-dialog>
My problem is the footerTemplate property, it is set with a reference id for:
<script type="text/x-template" id="someFooterTemplate">
<div>
<div>
<div>Some text</div>
<p id="SomeTextContentId"></p>
</div>
</div>
<div>
<button id="dialogCancel" class="btn">Close</button>
</div>
</script>
But it's not working for me, I'm not sure if there is some other property I should set, or which is the minimum version of the package for this to work.
When the dialog is open, all I can see is the footer with the id hash: #someFooterTemplate
The footer is created, is just that I cannot set its content based on the script,
Any help or direction would be appreciated.
Thanks,
Ernesto
|
<ejs-dialog created="created">…</ejs-dialog>
<script type="text/x-jsrender" id="someFooterTemplate">
<div>
<div>
<div>
<div>Some text</div>
<p id="SomeTextContentId"></p>
</div>
</div>
<div>
<button id="dialogCancel" class="btn">Close</button>
</div>
</div>
</script>
<script>
function created() {
this.footerTemplate = document.getElementById("someFooterTemplate").innerHTML;
}
</script> |
I see.
Thank you.