@kitten-science/kitten-scientists
Version:
Add-on for the wonderful incremental browser game: https://kittensgame.com/web/
17 lines • 555 B
JavaScript
import { ListItem } from "./ListItem.js";
import stylesListItem from "./ListItem.module.css";
export class ButtonListItem extends ListItem {
button;
constructor(host, button, options = {}) {
super(host, { ...options, children: [] });
this.button = button;
this.element.addClass(stylesListItem.head);
this.element.append(button.element);
this.addChildren(options.children);
}
refreshUi() {
super.refreshUi();
this.button.refreshUi();
}
}
//# sourceMappingURL=ButtonListItem.js.map