Plugins

In w2ui library there are several jQuery plugins for common purposes. These pluings provide common functions to rendering, destroying widgets, highlighting text, creating context menues, etc.

$().w2render(name)

jQuery plugin to render previously created element. For example, if you have created a grid and now want to render it to a different containter, you can do this: or Both ways do same action, but second one is much more human readable.

$().w2destroy(name)

jQuery plugin to destroy previously created element. It will destroy w2ui control and remove it from w2ui object. If the control does not exist no action will be take.

$().w2marker(str)

jQuery plugin that highlights text. It is internally used in the grid.

$().w2menu(menu, [options])

Displays context menu attached to the first element. It is used in w2toolbar for dropdown menus and in w2sidebar for context menus.

$().w2tag(html, [options])

See overlays

$().w2overlay(html, [options])

See overlays

User Comments

comments powered by Disqus