WebKit2.ContextMenuItem.prototype.get_stock_action

function get_stock_action(): WebKit2.ContextMenuAction {
    // Gjs wrapper for webkit_context_menu_item_get_stock_action()
}
  

Gets the WebKit2.ContextMenuAction of item. If the WebKit2.ContextMenuItem was not created for a stock action WebKit2.ContextMenuAction.custom will be returned. If the WebKit2.ContextMenuItem is a separator WebKit2.ContextMenuAction.no_action will be returned.

Returns

the WebKit2.ContextMenuAction of item