Add option.label for buttons

pull/568/head
Gregory Igelmund 6 months ago
parent 35587a9477
commit b964031b5b
No known key found for this signature in database
GPG Key ID: 7014FB8C0081D485

@ -250,6 +250,14 @@ function createToolbarButton(options, enableActions, enableTooltips, shortcuts,
el.tabIndex = -1;
if (options.label) {
// Create label inside utton
var label = document.createElement('span');
label.innerHTML = options.label;
label.classList.add('label');
el.appendChild(label);
}
if (iconClasses.length > 0) {
// Create icon element and append as a child to the button
var icon = document.createElement('i');

Loading…
Cancel
Save