I am trying to use dv.compact function like the step-by-step ewample.
My trouble is : we have no label when we clicked on the "show" button. The buttons are greater, but without label.
And I have changed nothing like the step-by-step example.
Code: Select all
// create an instance of AppGiniDetailView class
var dv = new AppGiniDetailView();

// create a variable "container" for easier handling of new action buttons
var container = dv.ActionButtons();

// create a group named "Options"
var group = container.addGroup("Options");

// add two buttons for toggling the compact-mode with no text but icons "minus"/"plus"
group.addButton("Hide", function () { dv.compact(); }, null, "minus");
group.addButton("Show", function () { dv.compact(false); }, null, "plus");

// execute the compact function to get smaller buttons and wider children-tabs.
dv.compact();