@kitten-science/kitten-scientists
Version:
Add-on for the wonderful incremental browser game: https://kittensgame.com/web/
20 lines • 710 B
JavaScript
import stylesButton from "../Button.module.css";
import { UiComponent } from "../UiComponent.js";
export class PaddingButton extends UiComponent {
/**
* Constructs an empty element that provides padding identical to an icon button.
*
* @param host - A reference to the host.
* @param options - Options for this button.
*/
constructor(parent, options) {
super(parent, { ...options });
this.element = $("<div/>", {
html: `<svg style="width: 18px; height: 18px;"></svg>`,
}).addClass(stylesButton.iconButton);
}
toString() {
return `[${PaddingButton.name}#${this.componentId}]`;
}
}
//# sourceMappingURL=PaddingButton.js.map