【问题标题】:Oracle Apex- Interactive Grid- Reset ButtonOracle Apex - 交互式网格 - 重置按钮
【发布时间】:2018-11-12 15:38:05
【问题描述】:

在 Oracle APEX 的交互式网格工具栏中,我们如何使重置按钮显示为仅图标按钮。

【问题讨论】:

    标签: oracle-apex oracle-apex-5 oracle-apex-5.1


    【解决方案1】:
    I found another way by adding the jsinitialization code in the attribute section of Interactive Grid as below
    
    function(config) {
                      var $ = apex.jQuery,
                      toolbarData = $.apex.interactiveGrid.copyDefaultToolbar(),
                      lastToolbarGroup = toolbarData[toolbarData.length - 1],
                      createButton = {
                                        type: "BUTTON",
                                        icon: "a-Icon icon-ig-reset",
                                        iconOnly: true,
                                        action: "reset-report"
                                      };
                       lastToolbarGroup.controls.pop();
                       lastToolbarGroup.controls.push(createButton);
                       config.toolbarData = toolbarData;
                       config.initialSelection = false;
                       return config;
                     }
    

    【讨论】:

    • 这种方式比较好。
    【解决方案2】:

    我不认为我理解你的问题...... :) 但是......

    我认为没有办法编辑交互式网格的这一功能。可以通过javascript,但我认为这是不必要的工作。

    $('button[data-action=reset-report] > span.a-Button-label').remove()
    

    或 CSS

    button[data-action=reset-report] > span.a-Button-label {
       display: none;
    }
    

    【讨论】:

    • 感谢您的帮助,我认为制作仅图标按钮可以提高较低分辨率下工具栏空间的有效利用率
    • 啊,是的,在这种情况下是有道理的。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-02-22
    • 1970-01-01
    • 2019-01-26
    • 2023-01-11
    • 1970-01-01
    • 2021-09-17
    • 1970-01-01
    相关资源
    最近更新 更多