jQuery-gridmanager
jQuery-gridmanager copied to clipboard
Custom Labels
See: https://github.com/DHoffm/Bootstrap-editor/issues/2 Commit with solution: https://github.com/DHoffm/Bootstrap-editor/issues/2
Those lines are the important ones:
var label = val[0];
var _class = gm.generateButtonClass(val[1]);
buttons.push("<a title='" + gm.options.addRow + " " + _class + "' class='" + gm.options.controlButtonClass + " add" + _class + "'><span class='" + gm.options.controlButtonSpanClass + "'></span> " + label + " " + _class + "</a>");
gm.generateClickHandler(val[1]);
And default config was changed from:
[12],
[6, 6],
[4, 4, 4],
[3, 3, 3, 3],
[2, 2, 2, 2, 2, 2],
[2, 8, 2],
[4, 8],
[8, 4]
to:
['',[12]],
['',[6, 6]],
['',[4, 4, 4]],
['',[3, 3, 3, 3]],
['',[2, 2, 2, 2, 2, 2]],
['',[2, 8, 2]],
['',[4, 8]],
['',[8, 4]]