Wijmo UI for the Web
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
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  string
    returnsValue = $(".selector").wijmenu("option", "trigger");
    
    // Set value
    var newValue; // Type:  string
    $(".selector").wijmenu("option", "trigger", newValue);
        
});
Javascript (Specification) 
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.
Browser Compatibility
7
5
5

See Also

Reference

options type
wijmenu jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.