|
onOpen(args) {
args.popup.element.querySelector("#input").addEventListener("click", e => {
this.inputEle = document.getElementById("input");
this.inputEle && this.inputEle.focus();
});
}
onClose(e) {
e.cancel = true;
}
onInput(e) {
this.data = new DataManager({
url:
"https://ej2services.syncfusion.com/production/web-services/api/Employees",
adaptor: new WebApiAdaptor(),
crossDomain: true
});
}
|
|
<input id="input" type="text" (click)='onClick($event)' (blur)='onInputBlur($event)' (input)="onInput($event)" />
|
|
onInputBlur(e) {
this.shouldClose = false;
(this.remoteObj as any).beforePopupOpen = true;
this.remoteObj.hidePopup();
} |