WebKit2.ContextMenu.prototype.insert
function insert(item: WebKit2.ContextMenuItem, position: Number(gint)): void {
// Gjs wrapper for webkit_context_menu_insert()
}
Inserts item into the menu at the given position. If position is negative, or is larger than the number of items in the WebKit2.ContextMenu, the item is added on to the end of the menu. The first position is 0.
- item
the WebKit2.ContextMenuItem to add
- position
the position to insert the item