Oracle APEX 5.1.1 隐藏工具栏操作按钮

Oracle APEX 5.1.1 Hiding toolbar Actions button

我有编辑我的IG的需求,但是客户不想看到"Actions"按钮。我一直在尝试使用 CSS 隐藏操作按钮的多种方法(基于 Whosebug 文章 ) and using javascript based on John Snyders Hacking the IG article and the blog post here 但没有成功。

我使用的CSS代码是

#load_sheet button[id="load_sheet_ig_actions_button"] {
  display: none !important
}

其中 #load_sheet 是 static_id IG 区域的名称。我正在使用按钮 ID,因为上面的文章中没有可用的数据操作。

我也试过在 IG Advanced 属性中放置以下 javascript 代码:

function(config) {
  var $ = apex.jQuery;
  var toolbarData = $.apex.interactiveGrid.copyDefaultToolbar();
  config.toolbarData = toolbarData;
  // toolbarData[3] is the actions1 (Action button) array
  toolbarData[3]['hide'] = true;
  return config;
}

有没有办法在显示 "Edit" 和 "Save" 按钮的同时隐藏 "Actions" 按钮?

感谢您的帮助或想法。

也许有一个属性可以将那个按钮设置为不可见,但我找不到。

但是,toolbarData 是一个数组,因此您可以从该数组中删除该按钮,在这种情况下将不会呈现该按钮,您的代码应如下所示:

function(config) {    
    var $ = apex.jQuery;
    var toolbarData = $.apex.interactiveGrid.copyDefaultToolbar();
    toolbarData.splice(3,1); //remove actions button
    config.toolbarData = toolbarData;

    return config;
}

我刚遇到这个问题。抱歉回复晚了。

这对我来说很好用:

#eng_req_ig_toolbar_actions_button {
    display: none !important;
}

其中 eng_req 是 static_id IG 区域的名称。