annotate jquery-ui/development-bundle/docs/selectable.html @ 0:b2e4605f20b2

beta version
author dwinter
date Thu, 30 Jun 2011 09:07:49 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
1
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
2 <ul class="UIAPIPlugin-toc">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
3 <li><a href="#overview">Overview</a></li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
4 <li><a href="#options">Options</a></li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
5 <li><a href="#events">Events</a></li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
6 <li><a href="#methods">Methods</a></li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
7 <li><a href="#theming">Theming</a></li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
8 </ul>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
9 <div class="UIAPIPlugin">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
10 <h1>jQuery UI Selectable</h1>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
11 <div id="overview">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
12 <h2 class="top-header">Overview</h2>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
13 <div id="overview-main">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
14 <p>The jQuery UI Selectable plugin allows for elements to be selected by dragging a box (sometimes called a lasso) with the mouse over the elements. Also, elements can be selected by click or drag while holding the Ctrl/Meta key, allowing for multiple (non-contiguous) selections.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
15 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
16 <div id="overview-dependencies">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
17 <h3>Dependencies</h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
18 <ul>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
19 <li>UI Core</li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
20 <li>UI Widget</li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
21 <li>UI Mouse</li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
22 </ul>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
23 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
24 <div id="overview-example">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
25 <h3>Example</h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
26 <div id="overview-example" class="example">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
27 <ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
28 <p><div id="demo" class="tabs-container" rel="">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
29 A simple jQuery UI Selectable.<br />
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
30 </p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
31 <pre>$(&quot;#selectable&quot;).selectable();
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
32 </pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
33 <p></div><div id="source" class="tabs-container">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
34 </p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
35 <pre>&lt;!DOCTYPE html&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
36 &lt;html&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
37 &lt;head&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
38 &lt;link href=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
39 &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&quot;&gt;&lt;/script&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
40 &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js&quot;&gt;&lt;/script&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
41 &lt;style type=&quot;text/css&quot;&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
42 #selectable .ui-selecting {
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
43 background: silver;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
44 }
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
45 #selectable .ui-selected {
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
46 background: gray;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
47 }
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
48 &lt;/style&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
49
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
50 &lt;script&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
51 $(document).ready(function() {
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
52 $(&quot;#selectable&quot;).selectable();
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
53 });
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
54 &lt;/script&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
55 &lt;/head&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
56 &lt;body style="font-size:62.5%;"&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
57
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
58 &lt;ul id=&quot;selectable&quot;&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
59 &lt;li&gt;Item 1&lt;/li&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
60 &lt;li&gt;Item 2&lt;/li&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
61 &lt;li&gt;Item 3&lt;/li&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
62 &lt;li&gt;Item 4&lt;/li&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
63 &lt;li&gt;Item 5&lt;/li&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
64 &lt;/ul&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
65
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
66 &lt;/body&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
67 &lt;/html&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
68 </pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
69 <p></div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
70 </p><p></div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
71 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
72 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
73 <div id="options">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
74 <h2 class="top-header">Options</h2>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
75 <ul class="options-list">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
76
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
77 <li class="option" id="option-disabled">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
78 <div class="option-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
79 <h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
80 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
81 <dt class="option-type-label">Type:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
82 <dd class="option-type">Boolean</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
83
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
84 <dt class="option-default-label">Default:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
85 <dd class="option-default">false</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
86
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
87 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
88 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
89 <div class="option-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
90 <p>Disables (true) or enables (false) the selectable. Can be set when initialising (first creating) the selectable.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
91 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
92 <div class="option-examples">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
93 <h4>Code examples</h4>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
94 <dl class="option-examples-list">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
95
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
96 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
97 Initialize a selectable with the <code>disabled</code> option specified.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
98 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
99 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
100 <pre><code>$( ".selector" ).selectable({ disabled: true });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
101 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
102
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
103
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
104 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
105 Get or set the <code>disabled</code> option, after init.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
106 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
107 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
108 <pre><code>//getter
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
109 var disabled = $( ".selector" ).selectable( "option", "disabled" );
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
110 //setter
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
111 $( ".selector" ).selectable( "option", "disabled", true );</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
112 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
113
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
114 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
115 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
116 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
117
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
118
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
119 <li class="option" id="option-autoRefresh">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
120 <div class="option-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
121 <h3 class="option-name"><a href="#option-autoRefresh">autoRefresh</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
122 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
123 <dt class="option-type-label">Type:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
124 <dd class="option-type">Boolean</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
125
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
126 <dt class="option-default-label">Default:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
127 <dd class="option-default">true</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
128
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
129 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
130 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
131 <div class="option-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
132 <p>This determines whether to refresh (recalculate) the position and size of each selectee at the beginning of each select operation. If you have many many items, you may want to set this to false and call the refresh method manually.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
133 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
134 <div class="option-examples">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
135 <h4>Code examples</h4>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
136 <dl class="option-examples-list">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
137
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
138 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
139 Initialize a selectable with the <code>autoRefresh</code> option specified.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
140 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
141 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
142 <pre><code>$( ".selector" ).selectable({ autoRefresh: false });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
143 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
144
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
145
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
146 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
147 Get or set the <code>autoRefresh</code> option, after init.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
148 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
149 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
150 <pre><code>//getter
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
151 var autoRefresh = $( ".selector" ).selectable( "option", "autoRefresh" );
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
152 //setter
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
153 $( ".selector" ).selectable( "option", "autoRefresh", false );</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
154 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
155
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
156 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
157 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
158 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
159
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
160
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
161 <li class="option" id="option-cancel">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
162 <div class="option-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
163 <h3 class="option-name"><a href="#option-cancel">cancel</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
164 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
165 <dt class="option-type-label">Type:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
166 <dd class="option-type">Selector</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
167
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
168 <dt class="option-default-label">Default:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
169 <dd class="option-default">':input,option'</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
170
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
171 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
172 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
173 <div class="option-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
174 <p>Prevents selecting if you start on elements matching the selector.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
175 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
176 <div class="option-examples">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
177 <h4>Code examples</h4>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
178 <dl class="option-examples-list">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
179
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
180 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
181 Initialize a selectable with the <code>cancel</code> option specified.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
182 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
183 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
184 <pre><code>$( ".selector" ).selectable({ cancel: ':input,option' });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
185 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
186
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
187
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
188 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
189 Get or set the <code>cancel</code> option, after init.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
190 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
191 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
192 <pre><code>//getter
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
193 var cancel = $( ".selector" ).selectable( "option", "cancel" );
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
194 //setter
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
195 $( ".selector" ).selectable( "option", "cancel", ':input,option' );</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
196 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
197
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
198 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
199 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
200 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
201
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
202
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
203 <li class="option" id="option-delay">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
204 <div class="option-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
205 <h3 class="option-name"><a href="#option-delay">delay</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
206 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
207 <dt class="option-type-label">Type:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
208 <dd class="option-type">Integer</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
209
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
210 <dt class="option-default-label">Default:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
211 <dd class="option-default">0</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
212
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
213 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
214 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
215 <div class="option-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
216 <p>Time in milliseconds to define when the selecting should start. It helps preventing unwanted selections when clicking on an element.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
217 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
218 <div class="option-examples">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
219 <h4>Code examples</h4>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
220 <dl class="option-examples-list">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
221
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
222 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
223 Initialize a selectable with the <code>delay</code> option specified.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
224 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
225 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
226 <pre><code>$( ".selector" ).selectable({ delay: 20 });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
227 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
228
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
229
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
230 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
231 Get or set the <code>delay</code> option, after init.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
232 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
233 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
234 <pre><code>//getter
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
235 var delay = $( ".selector" ).selectable( "option", "delay" );
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
236 //setter
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
237 $( ".selector" ).selectable( "option", "delay", 20 );</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
238 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
239
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
240 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
241 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
242 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
243
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
244
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
245 <li class="option" id="option-distance">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
246 <div class="option-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
247 <h3 class="option-name"><a href="#option-distance">distance</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
248 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
249 <dt class="option-type-label">Type:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
250 <dd class="option-type">Integer</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
251
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
252 <dt class="option-default-label">Default:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
253 <dd class="option-default">0</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
254
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
255 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
256 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
257 <div class="option-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
258 <p>Tolerance, in pixels, for when selecting should start. If specified, selecting will not start until after mouse is dragged beyond distance.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
259 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
260 <div class="option-examples">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
261 <h4>Code examples</h4>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
262 <dl class="option-examples-list">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
263
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
264 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
265 Initialize a selectable with the <code>distance</code> option specified.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
266 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
267 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
268 <pre><code>$( ".selector" ).selectable({ distance: 20 });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
269 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
270
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
271
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
272 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
273 Get or set the <code>distance</code> option, after init.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
274 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
275 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
276 <pre><code>//getter
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
277 var distance = $( ".selector" ).selectable( "option", "distance" );
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
278 //setter
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
279 $( ".selector" ).selectable( "option", "distance", 20 );</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
280 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
281
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
282 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
283 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
284 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
285
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
286
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
287 <li class="option" id="option-filter">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
288 <div class="option-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
289 <h3 class="option-name"><a href="#option-filter">filter</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
290 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
291 <dt class="option-type-label">Type:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
292 <dd class="option-type">Selector</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
293
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
294 <dt class="option-default-label">Default:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
295 <dd class="option-default">'*'</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
296
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
297 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
298 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
299 <div class="option-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
300 <p>The matching child elements will be made selectees (able to be selected).</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
301 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
302 <div class="option-examples">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
303 <h4>Code examples</h4>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
304 <dl class="option-examples-list">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
305
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
306 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
307 Initialize a selectable with the <code>filter</code> option specified.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
308 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
309 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
310 <pre><code>$( ".selector" ).selectable({ filter: 'li' });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
311 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
312
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
313
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
314 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
315 Get or set the <code>filter</code> option, after init.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
316 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
317 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
318 <pre><code>//getter
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
319 var filter = $( ".selector" ).selectable( "option", "filter" );
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
320 //setter
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
321 $( ".selector" ).selectable( "option", "filter", 'li' );</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
322 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
323
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
324 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
325 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
326 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
327
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
328
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
329 <li class="option" id="option-tolerance">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
330 <div class="option-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
331 <h3 class="option-name"><a href="#option-tolerance">tolerance</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
332 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
333 <dt class="option-type-label">Type:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
334 <dd class="option-type">String</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
335
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
336 <dt class="option-default-label">Default:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
337 <dd class="option-default">'touch'</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
338
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
339 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
340 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
341 <div class="option-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
342 <p>Possible values: 'touch', 'fit'.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
343 </p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
344 <ul>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
345 <li><b>fit</b>: draggable overlaps the droppable entirely</li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
346 <li><b>touch</b>: draggable overlaps the droppable any amount</li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
347 </ul>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
348 <p></p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
349 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
350 <div class="option-examples">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
351 <h4>Code examples</h4>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
352 <dl class="option-examples-list">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
353
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
354 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
355 Initialize a selectable with the <code>tolerance</code> option specified.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
356 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
357 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
358 <pre><code>$( ".selector" ).selectable({ tolerance: 'fit' });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
359 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
360
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
361
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
362 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
363 Get or set the <code>tolerance</code> option, after init.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
364 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
365 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
366 <pre><code>//getter
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
367 var tolerance = $( ".selector" ).selectable( "option", "tolerance" );
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
368 //setter
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
369 $( ".selector" ).selectable( "option", "tolerance", 'fit' );</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
370 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
371
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
372 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
373 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
374 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
375
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
376 </ul>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
377 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
378 <div id="events">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
379 <h2 class="top-header">Events</h2>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
380 <ul class="events-list">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
381
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
382 <li class="event" id="event-create">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
383 <div class="event-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
384 <h3 class="event-name"><a href="#event-create">create</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
385 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
386 <dt class="event-type-label">Type:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
387 <dd class="event-type">selectablecreate</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
388 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
389 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
390 <div class="event-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
391 <p>This event is triggered when selectable is created.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
392 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
393 <div class="event-examples">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
394 <h4>Code examples</h4>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
395 <dl class="event-examples-list">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
396
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
397 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
398 Supply a callback function to handle the <code>create</code> event as an init option.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
399 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
400 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
401 <pre><code>$( &quot;.selector&quot; ).selectable({
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
402 create: function(event, ui) { ... }
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
403 });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
404 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
405
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
406
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
407 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
408 Bind to the <code>create</code> event by type: <code>selectablecreate</code>.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
409 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
410 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
411 <pre><code>$( &quot;.selector&quot; ).bind( &quot;selectablecreate&quot;, function(event, ui) {
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
412 ...
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
413 });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
414 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
415
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
416 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
417 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
418 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
419
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
420
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
421 <li class="event" id="event-selected">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
422 <div class="event-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
423 <h3 class="event-name"><a href="#event-selected">selected</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
424 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
425 <dt class="event-type-label">Type:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
426 <dd class="event-type">selectableselected</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
427 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
428 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
429 <div class="event-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
430 <p>This event is triggered at the end of the select operation, on each element added to the selection.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
431 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
432 <div class="event-examples">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
433 <h4>Code examples</h4>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
434 <dl class="event-examples-list">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
435
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
436 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
437 Supply a callback function to handle the <code>selected</code> event as an init option.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
438 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
439 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
440 <pre><code>$( &quot;.selector&quot; ).selectable({
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
441 selected: function(event, ui) { ... }
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
442 });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
443 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
444
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
445
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
446 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
447 Bind to the <code>selected</code> event by type: <code>selectableselected</code>.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
448 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
449 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
450 <pre><code>$( &quot;.selector&quot; ).bind( &quot;selectableselected&quot;, function(event, ui) {
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
451 ...
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
452 });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
453 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
454
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
455 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
456 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
457 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
458
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
459
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
460 <li class="event" id="event-selecting">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
461 <div class="event-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
462 <h3 class="event-name"><a href="#event-selecting">selecting</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
463 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
464 <dt class="event-type-label">Type:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
465 <dd class="event-type">selectableselecting</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
466 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
467 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
468 <div class="event-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
469 <p>This event is triggered during the select operation, on each element added to the selection.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
470 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
471 <div class="event-examples">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
472 <h4>Code examples</h4>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
473 <dl class="event-examples-list">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
474
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
475 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
476 Supply a callback function to handle the <code>selecting</code> event as an init option.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
477 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
478 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
479 <pre><code>$( &quot;.selector&quot; ).selectable({
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
480 selecting: function(event, ui) { ... }
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
481 });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
482 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
483
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
484
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
485 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
486 Bind to the <code>selecting</code> event by type: <code>selectableselecting</code>.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
487 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
488 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
489 <pre><code>$( &quot;.selector&quot; ).bind( &quot;selectableselecting&quot;, function(event, ui) {
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
490 ...
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
491 });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
492 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
493
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
494 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
495 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
496 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
497
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
498
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
499 <li class="event" id="event-start">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
500 <div class="event-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
501 <h3 class="event-name"><a href="#event-start">start</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
502 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
503 <dt class="event-type-label">Type:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
504 <dd class="event-type">selectablestart</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
505 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
506 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
507 <div class="event-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
508 <p>This event is triggered at the beginning of the select operation.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
509 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
510 <div class="event-examples">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
511 <h4>Code examples</h4>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
512 <dl class="event-examples-list">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
513
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
514 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
515 Supply a callback function to handle the <code>start</code> event as an init option.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
516 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
517 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
518 <pre><code>$( &quot;.selector&quot; ).selectable({
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
519 start: function(event, ui) { ... }
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
520 });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
521 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
522
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
523
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
524 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
525 Bind to the <code>start</code> event by type: <code>selectablestart</code>.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
526 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
527 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
528 <pre><code>$( &quot;.selector&quot; ).bind( &quot;selectablestart&quot;, function(event, ui) {
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
529 ...
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
530 });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
531 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
532
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
533 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
534 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
535 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
536
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
537
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
538 <li class="event" id="event-stop">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
539 <div class="event-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
540 <h3 class="event-name"><a href="#event-stop">stop</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
541 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
542 <dt class="event-type-label">Type:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
543 <dd class="event-type">selectablestop</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
544 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
545 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
546 <div class="event-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
547 <p>This event is triggered at the end of the select operation.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
548 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
549 <div class="event-examples">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
550 <h4>Code examples</h4>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
551 <dl class="event-examples-list">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
552
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
553 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
554 Supply a callback function to handle the <code>stop</code> event as an init option.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
555 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
556 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
557 <pre><code>$( &quot;.selector&quot; ).selectable({
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
558 stop: function(event, ui) { ... }
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
559 });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
560 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
561
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
562
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
563 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
564 Bind to the <code>stop</code> event by type: <code>selectablestop</code>.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
565 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
566 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
567 <pre><code>$( &quot;.selector&quot; ).bind( &quot;selectablestop&quot;, function(event, ui) {
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
568 ...
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
569 });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
570 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
571
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
572 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
573 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
574 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
575
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
576
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
577 <li class="event" id="event-unselected">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
578 <div class="event-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
579 <h3 class="event-name"><a href="#event-unselected">unselected</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
580 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
581 <dt class="event-type-label">Type:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
582 <dd class="event-type">selectableunselected</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
583 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
584 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
585 <div class="event-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
586 <p>This event is triggered at the end of the select operation, on each element removed from the selection.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
587 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
588 <div class="event-examples">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
589 <h4>Code examples</h4>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
590 <dl class="event-examples-list">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
591
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
592 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
593 Supply a callback function to handle the <code>unselected</code> event as an init option.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
594 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
595 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
596 <pre><code>$( &quot;.selector&quot; ).selectable({
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
597 unselected: function(event, ui) { ... }
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
598 });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
599 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
600
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
601
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
602 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
603 Bind to the <code>unselected</code> event by type: <code>selectableunselected</code>.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
604 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
605 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
606 <pre><code>$( &quot;.selector&quot; ).bind( &quot;selectableunselected&quot;, function(event, ui) {
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
607 ...
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
608 });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
609 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
610
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
611 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
612 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
613 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
614
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
615
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
616 <li class="event" id="event-unselecting">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
617 <div class="event-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
618 <h3 class="event-name"><a href="#event-unselecting">unselecting</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
619 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
620 <dt class="event-type-label">Type:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
621 <dd class="event-type">selectableunselecting</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
622 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
623 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
624 <div class="event-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
625 <p>This event is triggered during the select operation, on each element removed from the selection.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
626 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
627 <div class="event-examples">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
628 <h4>Code examples</h4>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
629 <dl class="event-examples-list">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
630
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
631 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
632 Supply a callback function to handle the <code>unselecting</code> event as an init option.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
633 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
634 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
635 <pre><code>$( &quot;.selector&quot; ).selectable({
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
636 unselecting: function(event, ui) { ... }
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
637 });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
638 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
639
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
640
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
641 <dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
642 Bind to the <code>unselecting</code> event by type: <code>selectableunselecting</code>.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
643 </dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
644 <dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
645 <pre><code>$( &quot;.selector&quot; ).bind( &quot;selectableunselecting&quot;, function(event, ui) {
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
646 ...
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
647 });</code></pre>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
648 </dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
649
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
650 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
651 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
652 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
653
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
654 </ul>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
655 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
656 <div id="methods">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
657 <h2 class="top-header">Methods</h2>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
658 <ul class="methods-list">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
659
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
660 <li class="method" id="method-destroy">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
661 <div class="method-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
662 <h3 class="method-name"><a href="#method-destroy">destroy</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
663 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
664 <dt class="method-signature-label">Signature:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
665 <dd class="method-signature">.selectable( "destroy"
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
666
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
667
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
668
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
669
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
670
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
671
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
672
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
673 )</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
674 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
675 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
676 <div class="method-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
677 <p>Remove the selectable functionality completely. This will return the element back to its pre-init state.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
678 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
679 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
680
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
681
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
682 <li class="method" id="method-disable">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
683 <div class="method-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
684 <h3 class="method-name"><a href="#method-disable">disable</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
685 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
686 <dt class="method-signature-label">Signature:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
687 <dd class="method-signature">.selectable( "disable"
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
688
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
689
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
690
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
691
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
692
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
693
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
694
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
695 )</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
696 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
697 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
698 <div class="method-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
699 <p>Disable the selectable.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
700 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
701 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
702
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
703
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
704 <li class="method" id="method-enable">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
705 <div class="method-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
706 <h3 class="method-name"><a href="#method-enable">enable</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
707 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
708 <dt class="method-signature-label">Signature:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
709 <dd class="method-signature">.selectable( "enable"
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
710
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
711
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
712
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
713
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
714
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
715
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
716
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
717 )</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
718 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
719 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
720 <div class="method-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
721 <p>Enable the selectable.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
722 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
723 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
724
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
725
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
726 <li class="method" id="method-option">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
727 <div class="method-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
728 <h3 class="method-name"><a href="#method-option">option</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
729 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
730 <dt class="method-signature-label">Signature:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
731 <dd class="method-signature">.selectable( "option"
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
732
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
733 , optionName
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
734
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
735 , <span class="optional">[</span>value<span class="optional">] </span>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
736
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
737
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
738
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
739 )</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
740 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
741 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
742 <div class="method-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
743 <p>Get or set any selectable option. If no value is specified, will act as a getter.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
744 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
745 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
746
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
747
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
748 <li class="method" id="method-option">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
749 <div class="method-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
750 <h3 class="method-name"><a href="#method-option">option</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
751 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
752 <dt class="method-signature-label">Signature:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
753 <dd class="method-signature">.selectable( "option"
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
754
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
755 , options
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
756
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
757
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
758
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
759
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
760
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
761 )</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
762 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
763 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
764 <div class="method-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
765 <p>Set multiple selectable options at once by providing an options object.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
766 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
767 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
768
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
769
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
770 <li class="method" id="method-widget">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
771 <div class="method-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
772 <h3 class="method-name"><a href="#method-widget">widget</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
773 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
774 <dt class="method-signature-label">Signature:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
775 <dd class="method-signature">.selectable( "widget"
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
776
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
777
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
778
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
779
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
780
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
781
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
782
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
783 )</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
784 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
785 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
786 <div class="method-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
787 <p>Returns the .ui-selectable element.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
788 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
789 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
790
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
791
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
792 <li class="method" id="method-refresh">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
793 <div class="method-header">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
794 <h3 class="method-name"><a href="#method-refresh">refresh</a></h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
795 <dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
796 <dt class="method-signature-label">Signature:</dt>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
797 <dd class="method-signature">.selectable( "refresh"
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
798
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
799
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
800
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
801
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
802
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
803
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
804
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
805 )</dd>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
806 </dl>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
807 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
808 <div class="method-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
809 <p>Refresh the position and size of each selectee element. This method can be used to manually recalculate the position and size of each selectee element. Very useful if autoRefresh is set to false.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
810 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
811 </li>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
812
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
813 </ul>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
814 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
815 <div id="theming">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
816 <h2 class="top-header">Theming</h2>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
817 <p>The jQuery UI Selectable plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
818 </p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
819 <p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.selectable.css stylesheet that can be modified. These classes are highlighed in bold below.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
820 </p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
821
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
822 <h3>Sample markup with jQuery UI CSS Framework classes</h3>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
823 &lt;ul class=&quot;<strong>ui-selectable</strong>&quot;&gt;<br />
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
824 &#160;&#160;&#160;&lt;li class=&quot;<strong>ui-selectee</strong>&quot;&gt;&lt;/li&gt;<br />
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
825 &#160;&#160;&#160;&lt;li class=&quot;<strong>ui-selectee</strong>&quot;&gt;&lt;/li&gt;<br />
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
826 &#160;&#160;&#160;&lt;li class=&quot;<strong>ui-selectee</strong>&quot;&gt;&lt;/li&gt;<br />
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
827 &lt;/ul&gt;
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
828 <p class="theme-note">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
829 <strong>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
830 Note: This is a sample of markup generated by the selectable plugin, not markup you should use to create a selectable. The only markup needed for that is <br />&lt;ul&gt;<br />
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
831 &#160;&#160;&#160;&lt;li&gt;&lt;/li&gt;<br />
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
832 &#160;&#160;&#160;&lt;li&gt;&lt;/li&gt;<br />
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
833 &#160;&#160;&#160;&lt;li&gt;&lt;/li&gt;<br />
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
834 &lt;/ul&gt;.
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
835 </strong>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
836 </p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
837
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
838 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
839 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
840
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
841 </p><!--
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
842 Pre-expand include size: 34674 bytes
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
843 Post-expand include size: 53359 bytes
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
844 Template argument size: 26926 bytes
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
845 Maximum: 2097152 bytes
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
846 -->
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
847
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
848 <!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3771-1!1!0!!en!2 and timestamp 20110315194405 -->