Collapsible set

Home Search

Collapsible sets

The collapsible plugin has the following options:

iconpos string

default: "left"

Positions the icons in the collapsible headers. Possible values: left, right, top, bottom, none, notext.

$( document ).bind( "mobileinit", function(){
    $.mobile.collapsibleset.prototype.options.iconpos = "right";
});

This option is also exposed as a data attribute: data-iconpos="right".

initSelector CSS selector string

default: ":jqmData(role='collapsible-set')"

This is used to define the selectors (element types, data roles, etc.) that will automatically be initialized as collapsible sets. To change which elements are initialized, bind this option to the mobileinit event:

$( document ).bind( "mobileinit", function(){
    $.mobile.collapsibleset.prototype.options.initSelector = ".mycollapsibleset";
});
mini boolean

default: false

Sets the size of the element to a more compact, mini version. To set the value for all instances of this widget, bind this option to the mobileinit event:

$( document ).bind( "mobileinit", function(){
    $.mobile.collapsibleset.prototype.options.mini = true;
});

This option is also exposed as a data attribute: data-mini="true".

theme string

default: null, inherited from parent

Sets the color scheme (swatch) for the collapsible set. It accepts a single letter from a-z that maps to the swatches included in your theme. To set the value for all instances of this widget, bind this option to the mobileinit event:

$( document ).bind( "mobileinit", function(){
    $.mobile.collapsibleset.prototype.options.theme = "a";
});

This option is also exposed as a data attribute: data-theme="a".