ContextMenuItem.newFromStockActionWithLabel
webkit.context_menu_item.ContextMenuItem newFromStockActionWithLabel(webkit.types.ContextMenuAction action, string label)Creates a new #WebKitContextMenuItem for the given stock action using the given label.
Stock actions have a predefined label, this method can be used to create a #WebKitContextMenuItem for a #WebKitContextMenuAction but using a custom label.
Parameters
action | a #WebKitContextMenuAction stock action |
label | a custom label text to use instead of the predefined one |
Returns
the newly created #WebKitContextMenuItem object.