JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › General Discussions › smart-editor onToobarItemClick event › Reply To: smart-editor onToobarItemClick event
January 24, 2023 at 6:34 am
#104280
svetoslav_borislavov
Participant
Hi,
As it is a custom toolbar item you should add the event manually.
Your custom toolbar item object should look like this:
{
name: “settings”,
width: “auto”,
template: (element) => {
element.textContent = “settings”;
element.addEventListener(“click”, () => {
console.log(“click”);
});
},
}
Best Regards,
Svetoslav Borislavov
Smart UI Team
https://www.htmlelements.com/
- This reply was modified 1 year, 9 months ago by svetoslav_borislavov.