Hot-key in interactive grid by JavaScript in oracle apex www.gooadmin.com

Опубликовано: 05 Апрель 2026
на канале: Hossam assadallah
603
9

function  ( options ) {

//Tab and Shift-Tab will skip over cells that are read-only

options.defaultGridViewOptions = {

skipReadonlyCells: true

};



options.initActions = function( actions ) {

//Action to focus on the Search Bar

actions.add( {

name: "focus",

label: "focus" ,

action: function( event, focusElement ) {

var ig$ = $(actions.context);

ig$.interactiveGrid("focus");

return true;

}

});

// Add a keyboard shortcut to Add a Row

actions.lookup( "row-add-row" ).shortcut = "Alt+A";

actions.update( "row-add-row" );

// Add a keyboard shortcut to Delete a Row

actions.lookup( "row-delete" ).shortcut = "Alt+D";

actions.update( "row-delete" );

// Add a keyboard shortcut to Save the changes

actions.lookup( "save" ).shortcut = "Alt+S";

actions.update( "save" );

// Add a keyboard shortcut to refresh the IG

actions.lookup( "refresh" ).shortcut = "Alt+R";

actions.update( "refresh" );

// Add a keyboard shortcut to focus on the Search Bar

actions.lookup( "focus" ).shortcut = "Alt+F";

actions.update( "focus" );

// Add a keyboard shortcut to reset the IG

actions.lookup( "reset-report" ).shortcut = "Alt+C";

actions.update( "reset-report" );

}

return options;

}