Add "class" property to JSDialogs items.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I130b28ff40f9adf6bf05e2aed433e8ecc92acb1d
This commit is contained in:
Gökay Şatır 2023-08-17 14:46:41 +03:00 committed by Gökay ŞATIR
parent c3aaae077f
commit 1fd4c05111

View file

@ -2470,6 +2470,8 @@ L.Control.JSDialogBuilder = L.Control.extend({
controls['container'] = div;
div.tabIndex = -1;
if (data.class)
div.classList.add(data.class);
var isRealUnoCommand = true;
var hasPopUp = false;
@ -2978,6 +2980,9 @@ L.Control.JSDialogBuilder = L.Control.extend({
if (data.command) {
var div = builder._createIdentifiable('div', 'unotoolbutton ' + builder.options.cssClass + ' ui-content unospan', parentContainer, data);
if (data.class)
div.classList.add(data.class);
var id = data.command.substr('.uno:'.length);
div.id = id;
div.tabIndex = -1;