Add "class" property to JSDialogs items.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: I130b28ff40f9adf6bf05e2aed433e8ecc92acb1d
This commit is contained in:
parent
c3aaae077f
commit
1fd4c05111
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue