-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
32 lines (20 loc) · 1012 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
This jQuery plugin faciliates the classic two-column left/right picker. The plugin operates on a specified UL. The following
html fragment is an example:
<div id="picker">
<ul id="pickerDataSource">
<li value="1">Item 1</li>
<li value="2">Item 2</li>
<li value="3">Item 3</li>
</ul>
</div>
A full working example is contained in the picker.html file, which is in the root of the project on github.
The following code invokes the picker against the aforementioned UL"
$("#pickerDataSource").picker();
In some cases, you will have pre-selected items. The following code will move id's 1 and 2 to the selected list:
$("#pickerDataSource").picker({selectedItems: [1,2]});
This plugin is fully ThemeRoller compatable. The themes ui-lightness, ui-darkness and sunny are included as examples. Simply change the css
reference in the example picker.html page and you will see plugin change accordingly.
There are a battery of tests in the /tests folder.
Enjoy...
< JVP >
twitter: @johnvpetersen