Wijmo UI for the Web
trigger Field

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) 
var value; // Type: string
value = jQuery.wijmo.wijmenu.options.trigger;
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

 

 


© 2013 All Rights Reserved.

Send comments on this topic.