Wijmo UI for the Web
trigger Option
wijmo.menu.wijmenu Namespace > options type : trigger Option

Default value: ""

The trigger option handles the open event for the menu or submenu. This option must be used with the triggerEvent option.

Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  string
    returnsValue = $(".selector").wijmenu("option", "trigger");
    
    // Set value
    var newValue; // Type:  string
    $(".selector").wijmenu("option", "trigger", newValue);
        
});
var trigger : string;
Example
//Set trigger to make menu as input's contextmenu.
$(".selector").wijmenu("option", "trigger", "input")
Remarks
If the trigger is set to a menu item(the <li> element), then the submenu appears when the item is clicked if the triggerEvent is set to click. If the trigger is set to an element outside of the menu, then the menu opens when the element is clicked if the triggerEvent is set to click as a contextmenu.
See Also

Reference

options type
wijmenu jQuery Widget