Show:

Q contextual Class

This plugin Makes a contextual menu from given options and handles its showing / hiding.

Constructor

Q contextual

(
  • [options]
)

Parameters:

  • [options] Object optional

    options an object that can include:

    • [elements] Array optional

      elements is an array of LI elements to add

    • [className=''] String optional

      className is a CSS class name for additional styling. Optional

    • [defaultHandler=null] Q.Event | Function | String optional

      defaultHandler 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 optional

      size is an object with values for override default contextual size.

      • [width] Number optional
        width
      • [height] Number optional
        height

Item Index

Methods

Methods

clickfocus

(
  • [options]
)

Plugin clickfocus

Parameters:

  • [options] Object optional

    options for clickfocus plugin

    • [scroll] Boolean optional

      Set 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 optional

      Number of pixels from the top

    • [timeout] Number optional

      milliseconds before one more attempt to fous

remove

()

Removes the contextual functionality from the element