2018-11-18 03:29:16 +01:00
|
|
|
class Button extends BaseElement {
|
2018-11-11 02:25:47 +01:00
|
|
|
constructor(id, label, onClick, additionalClasses) {
|
2018-11-18 03:29:16 +01:00
|
|
|
console.log("additional classes", additionalClasses)
|
|
|
|
|
2018-11-11 02:25:47 +01:00
|
|
|
super(
|
|
|
|
id,
|
|
|
|
label,
|
|
|
|
onClick,
|
|
|
|
additionalClasses
|
|
|
|
);
|
|
|
|
this.element.classList.add('button');
|
|
|
|
}
|
|
|
|
}
|