ultrawidify/js/lib/libghettoui/buttons/ShortcutButton.js

11 lines
321 B
JavaScript
Raw Normal View History

2018-11-11 02:25:47 +01:00
class ShortcutButton extends Button {
constructor(id, label, shortcutLabel, onClick, additionalClasses) {
console.log("additional classes -- sb", additionalClasses)
2018-11-11 02:25:47 +01:00
super(
id,
`${label}<br/><span class="smallcaps small darker">(${shortcutLabel})`,
onClick,
additionalClasses
);
}
}