apex icon indicating copy to clipboard operation
apex copied to clipboard

[Question] Action menu in interactive grid

Open snowformatics opened this issue 3 years ago • 2 comments

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?

snowformatics avatar Sep 22 '21 09:09 snowformatics

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

ghost avatar Sep 22 '21 13:09 ghost

Ok, I found it, thanks!

snowformatics avatar Sep 23 '21 06:09 snowformatics