Код: Выделить всё
function(config) {
let $ = apex.jQuery,
toolbarData = $.apex.interactiveGrid.copyDefaultToolbar(),
toolbarGroup = toolbarData.toolbarFind("actions4");
toolbarGroup.controls.push(
{
type: "TOGGLE",
action: "maximize-region",
icon: "fa fa-expand"
}
);
config.initActions = function(actions){
actions.add({
name: "maximize-region",
maximize: false,
set: function(maximize) {
this.maximize = maximize;
//jQuery to maximize the region would go here
}, get: function() {
return this.maximize;
}
});
}
config.toolbarData = toolbarData;
return config;
}Будем благодарны за любую помощь!
Подробнее здесь: https://stackoverflow.com/questions/791 ... ing-jquery
Мобильная версия