WebKit2.ContextMenu.prototype.get_item_at_position

function get_item_at_position(position: Number(guint)): WebKit2.ContextMenuItem {
    // Gjs wrapper for webkit_context_menu_get_item_at_position()
}
  

Gets the item at the given position in the menu.

position

the position of the item, counting from 0

Returns

the WebKit2.ContextMenuItem at position position in menu, or null if the position is off the end of the menu.