Q contextual Class
This plugin Makes a contextual menu from given options and handles its showing / hiding.
Constructor
Q contextual
-
[options]
Parameters:
-
[options]
Object optionaloptions an object that can include:
-
[elements]
Array optionalelements is an array of LI elements to add
-
[className='']
String optionalclassName is a CSS class name for additional styling. Optional
-
[defaultHandler=null]
Q.Event | Function | String optionaldefaultHandler is a Q.Event, or function which is called when a specific handler for selected item is not defined. So you can use just one handler for whole contextual or provide separate handlers for each item.
-
[size=null]
Object optionalsize is an object with values for override default contextual size.
-
Item Index
Methods
Methods
clickfocus
-
[options]
Plugin clickfocus
Parameters:
-
[options]
Object optionaloptions for clickfocus plugin
-
[scroll]
Boolean optionalSet to true or false to override the iOS scrolling effect. The default is true only if (Q.info.isTouchscreen and the input is not in an overlay.)
-
[scrollTopMargin=80]
Boolean optionalNumber of pixels from the top
-
[timeout]
Number optionalmilliseconds before one more attempt to fous
-
remove
()
Removes the contextual functionality from the element