Documentation

JQMListViewDivider

A JQMListViewDivider object represents a divider in a JQMListView object. Dividers can be added to a list view using the appendDivider() and insertDivider() methods of the JQMListView object.

Example:

// add a new divider to a list view:
var divider = listview.appendDivider();
divider.label = "Divider";
divider.theme = "b";

For more detail, view the full object documentation on HandheldDesigner.com.

Object Properties & Methods

 idThe object's unique identifier. Also used as the variable name in code.
 labelThe label text displayed by the divider.
 removeRemoves this divider from the list view.
 themeThe color scheme used to display the divider.
 userdataAn object for storing user data.

id

PropertyFirst available in version 1.1.0

The object's unique identifier. Also used as the variable name in code.

Example:

// get height of object with the id "object1".
var h = object1.height;

label

PropertyFirst available in version 1.1.0

The label text displayed by the divider.

Example:

// add a new divider to a list view:
var divider = listview.appendDivider();
divider.label = "Divider";

remove

MethodFirst available in version 1.1.0

Removes this divider from the list view.

Usage:

divider.remove();

Example:

var divider = listview.items[0];
divider.remove();

theme

PropertyFirst available in version 1.1.0

The color scheme used to display the divider. The specific colors used are defined by the jQuery Mobile theme used by your application.

If you are using the default theme, values "a" through "e" are defined.

Example:

// add a new divider to a list view:
var divider = listview.appendDivider();
divider.theme = "a";

userdata

PropertyFirst available in version 1.1.0

An JavaScript object for storing user data. You can use this property to store data for later use. (For example, to share data between event handlers.)

Example:

// track the number of times a button is clicked:
function button1_onClick(event) {
	if(button1.userdata.timesClicked === undefined)
	{
		button1.userdata.timesClicked = 0;
	}
	else
	{
		button1.userdata.timesClicked++;
	}
}

Copyright © 2010-2017, Handheld Designer, LLC, All Rights Reserved.
Made by hand in New England, USA.