import {Button} from '@syncfusion/ej2-buttons';
class ProductExtraPopups {
private editBrandBtn: Button;
constructor() {
this.setupEditBrandPopup();
}
private setupEditBrandPopup() {
this.editBrandBtn = new Button({
isPrimary: true,
content: "Add New",
});
this.editBrandBtn.appendTo('#add-new-brand');
this.editBrandBtn.element.onclick = (): void => {
console.log('It is working !');
}
}
}
const extraPopups = new ProductExtraPopups();
html file
<button id="add-new-brand" type="button"></button>
https://ibb.co/3Tn9fHz
Console message is not showing in the browser console. Any suggestions would be grateful.