Search code examples
oracle-apexoracle-apex-5oracle-apex-5.1

Oracle Apex- Interactive Grid- Reset Button


In the Interactive Grid Toolbars of Oracle APEX, How can we make the reset button to show as icon only button.


Solution

  • 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;
                     }