oracle / apex

Official Oracle APEX repo for sample code, starter apps, plug-ins, and more! #orclapex
https://apex.oracle.com
Universal Permissive License v1.0
438 stars 221 forks source link

[Question] Action menu in interactive grid #15

Open snowformatics opened 3 years ago

snowformatics commented 3 years ago

Hi,

thanks for the great example!

I have question, is it not clear to me how display the add the "delete rows" inside the action menu and how to display the edit button in the toolbar of the interactive grid.

Could you maybe explain?

ghost commented 3 years ago

You can manipulate these with some javascript in the IG attributes, advanced section, javascript initialization code:

function(config) {         
    var $ = apex.jQuery;
    var toolbarData = $.apex.interactiveGrid.copyDefaultToolbar();

    config.initActions = function( actions ) {  
        actions.remove("row-refresh");
        actions.remove("row-add-row");        
    };
    config.toolbarData = toolbarData;
    return config;
}
snowformatics commented 3 years ago

Ok, I found it, thanks!