I have a custom button on scheduler's toolbar and on "onclick" event I'm calling function "openEditor()". Inside this function I want to call a `text/x-kendo-template` script type. How can I do this?
My code right now:
Custom button:
schedulerToolbar.append("<ul class='k-reset'> <li class='k-state-default'> <a role='button' href='#' class='k-link newMeetingButton' onclick='openEditor()'> Nova reserva </a> </li></ul>")Function openEditor():
function openEditor() { *code to call customEditorTemplateBh script* }Template script:
<script id="customEditorTemplateBh" type="text/x-kendo-template"> *template code*</script>
