class ActionEntry extends HTMLElement{ constructor(title, actionCallback){ super(); this.title = title; this.actionCallback = actionCallback; } performActionCallback(){ this.actionCallback() } connectedCallback(){ this.render(); this.getElementsByTagName("img")[0].onclick = () => {this.performActionCallback();}; } render(){ this.innerHTML = `