Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Customizing IG Actions Menu in 19.2 with JavaScript

randallwijntuinApr 8 2020 — edited Apr 8 2020

I am trying to customize the actions menu of an interactive grid, by hiding actions I don't need and adding my own custom actions. I've faced two problems doing this.

  • I'm able to hide actions in the menu, but not the sub-menu/folder if it's empty.

pastedImage_4.png

  • I've used the following code to add a custom action, but it doesn't show up in the actions menu

function( options ) {

options.initActions = function( actions ) {

    actions.add( {

        name: "my-action",

        label: "Hello",

        action: function( event, focusElement ) {

            alert( "Hello World!" );

        }

    } );

};

return options;

}

Is there any way to hide empty sub-mnenu's? And what am I missing in terms of adding the custom action

This post has been answered by Keyser on Apr 8 2020
Jump to Answer

Comments

Post Details

Added on Apr 8 2020
2 comments
1,484 views