insert

fun insert(item: ContextMenuItem, position: <Error class: unknown class>)

Inserts @item into the @menu at the given position.

If @position is negative, or is larger than the number of items in the #WebKitContextMenu, the item is added on to the end of the @menu. The first position is 0.

Parameters

item

the #WebKitContextMenuItem to add

position

the position to insert the item