Skip to content
Rickard Nilsson edited this page Jun 15, 2015 · 6 revisions

Welcome to the listgroup.js wiki!

For examples and usage see http://rickardn.github.io/listgroup.js/

JavaScript API

Usage

Enable list group via JavaScript:

$('#example').listgroup(options)

Options

Options can be passed via data attributes or JavaScript.

Name Type Default Description
click function '' If a function is given, it will be called with its this reference set to the list group item element that was clicked.
select string | string[] | selector '' If a string or an array of strings is provided, the item(s) with its value set to any of the strings is selected. If a selector is provided, the items specified are selected.
unselect
Clone this wiki locally