13 lines
275 B
JavaScript
13 lines
275 B
JavaScript
class Button extends BaseElement {
|
|
constructor(id, label, onClick, additionalClasses) {
|
|
console.log("additional classes", additionalClasses)
|
|
|
|
super(
|
|
id,
|
|
label,
|
|
onClick,
|
|
additionalClasses
|
|
);
|
|
this.element.classList.add('button');
|
|
}
|
|
} |