jQuery UI elements

Component ID

1233068

Component name

jQuery UI elements

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Provides 'elements', or render-array #types for (some) jQuery UI widgets.

Some of the jQuery UI widgets require rather specific HTML-markup in order to work. With this module, displaying some data in an accordion is as simple as returning the following render array:

$output = array(
  '#type'   => 'jqui_accordion',
  '#items' => $items,
);

Where $items is a simple array of arrays like:

$items = array(
  array(
    'heading' => '...',
    'body'      => '...',
  ),
  array(
    'heading' => '...',
    'body'      => '...',
  ),
  ...
);

This module will do the rest for you: Wrap your items in appropriate markup, include the necessary javascript library and output the javascript code that creates the widget.

The render arrays can optionally have a #settings key to set various properties of the UI widget.

So far, only jQuery UI accordions and tabs are implemented.

This is an API module that does not provide features on its own. Only install it if another module requires it.