Hi,
I've a button which is created in appended html in typescript.I added a click function which name is btnCancelNewClientAppointment but it doesn't call it's function. How can i do that?
let dialogObj: Dialog = (document.querySelector('.e-schedule-dialog') as EJ2Instance).ej2_instances[0] as Dialog;
dialogObj.footerTemplate ='<div>' +
'<button id="saveButton" #saveSavedClientButton class="e-control e-btn e-primary sendButton" data-ripple="true">Kaydet</button>' +
'<button id="cancelButton" #btnCancelNewClientAppointment class="e-control e-btn" data-ripple="true" (click)="btnCancelNewClientAppointment()">İptal</button>'+
'</div>'
btnCancelNewClientAppointment():void{
let dialogObj: Dialog = (document.querySelector('.e-schedule-dialog') as EJ2Instance).ej2_instances[0] as Dialog;
dialogObj.hide();
}