10 lines
349 B
JavaScript
10 lines
349 B
JavaScript
class ShortcutButton extends Button {
|
|
constructor(id, label, shortcutLabel, onClick, additionalClasses) {
|
|
super(
|
|
id,
|
|
shortcutLabel ? `${label}<br/><span class="smallcaps small darker">(${shortcutLabel})</span>` : `${label}<br/><span class="smallcaps small darker"> </span>`,
|
|
onClick,
|
|
additionalClasses
|
|
);
|
|
}
|
|
} |