WebKit2.ContextMenu.prototype.move_item
function move_item(item: WebKit2.ContextMenuItem, position: Number(gint)): void {
// Gjs wrapper for webkit_context_menu_move_item()
}
Moves item to the given position in the menu. 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 new position to move the item