|
13 | 13 | padding: 0; margin: 0;
|
14 | 14 | }
|
15 | 15 | body {
|
16 |
| - font-family: 'Arial'; |
| 16 | + font-family: 'Arial', sans-serif; |
17 | 17 | font-size: 90%;
|
18 | 18 | color: #333;
|
19 | 19 | line-height: 20px;
|
|
134 | 134 | <td>fullMatch</td>
|
135 | 135 | <td>Boolean</td>
|
136 | 136 | <td>Whether to filter the items not only from the beginning of the line. Anyhow, the filtering is applied only in text stored inside of
|
137 |
| - <code><span class="dproCombobox-mainspan"></span></code> element. See also <code>pMarkup</code> and <code>pFillFunc</code></td> |
| 137 | + <code><span class="scombobox-mainspan"></span></code> element. See also <code>pMarkup</code> and <code>pFillFunc</code></td> |
138 | 138 | <td><code>false</code></td>
|
139 | 139 | </tr>
|
140 | 140 | <tr>
|
|
187 | 187 | <td>forbidInvalid</td>
|
188 | 188 | <td>Boolean</td>
|
189 | 189 | <td>Whether to forbid leaving invalid value in combobox on blur. In case this feature is disabled combobox is highlighted on blur
|
190 |
| - (<code>dproCombobox-invalid</code> css-class). Other way, the filter text field becomes empty and the combobox value is unset. |
| 190 | + (<code>scombobox-invalid</code> css-class). Other way, the filter text field becomes empty and the combobox value is unset. |
191 | 191 | </td>
|
192 | 192 | <td><code>false</code></td>
|
193 | 193 | </tr>
|
|
221 | 221 | <td>pMarkup</td>
|
222 | 222 | <td>String</td>
|
223 | 223 | <td>The paragraph markup. Each item in a list is a paragraph tag.</td>
|
224 |
| - <td><code>'<img src="${imgsrc}" /><span class="dproCombobox-mainspan">${text}</span> <span>${additional}</span>'</code></td> |
| 224 | + <td><code>'<img src="${imgsrc}" /><span class="scombobox-mainspan">${text}</span> <span>${additional}</span>'</code></td> |
225 | 225 | </tr>
|
226 | 226 | <tr>
|
227 | 227 | <td>pFillFunc</td>
|
|
257 | 257 | <td><code>callback.func</code> executes with arguments <code>callback.args</code>
|
258 | 258 | after every combobox initialization finished. If the target set
|
259 | 259 | contains multiple comboboxes, than callback executes each time. <code>this</code> refers
|
260 |
| - to the main combobox div (class <code>dproCombobox</code>).</td> |
| 260 | + to the main combobox div (class <code>scombobox</code>).</td> |
261 | 261 | </tr>
|
262 | 262 | </tbody>
|
263 | 263 | <thead>
|
|
274 | 274 | <tbody>
|
275 | 275 | <tr>
|
276 | 276 | <td>fill</td>
|
277 |
| - <td>data {Array|Object|String} data</td> |
278 |
| - <td>Fills the combobox with specified data. The data may be represented in the same way as <code>data</code> option.</td> |
279 |
| - <td><code>jQuery instance</code></td> |
| 277 | + <td>data {Array|Object|String|undefined} data, fill {Boolean} flag</td> |
| 278 | + <td>Sets the combobox data. The data may be represented in the same way as <code>data</code> option. |
| 279 | + Use <code>fill</code> option to change combobox contents. Using this method without it does not |
| 280 | + rebuild the combobox contents.<br /> |
| 281 | + Despite of having <code>options</code> method described below, this method it useful because |
| 282 | + after using <code>options</code> method the data will be merged what may be undesired. |
| 283 | + </td> |
| 284 | + <td><code>jQuery instance</code> | <code>combobox data</code></td> |
280 | 285 | </tr>
|
281 | 286 | <tr>
|
282 | 287 | <td>clear</td>
|
283 | 288 | <td></td>
|
284 |
| - <td>Deletes all the data and clears the combobox.</td> |
| 289 | + <td>Empties the combobox. You can still use <code>fill</code> method to get the combobox items back.</td> |
285 | 290 | <td><code>jQuery instance</code></td>
|
286 | 291 | </tr>
|
287 | 292 | <tr>
|
|
322 | 327 | </tr>
|
323 | 328 | <tr>
|
324 | 329 | <td colspan="4">Here are methods which help with working with listeners. To add a listener, use
|
325 |
| - <code>$(combobox).dproCombobox('lisneter', function(){})</code> syntax. <code>this</code> will refer to different elements depending on event type. |
326 |
| - To trigger an event use <code>$(combobox).dproCombobox('lisneter')</code> syntax; to trigger event with a certain namespace, use |
327 |
| - <code>$(combobox).dproCombobox('lisneter', 'namespace')</code> syntax.</td> |
| 330 | + <code>$(combobox).scombobox('lisneter', function(){})</code> syntax. <code>this</code> will refer to different elements depending on event type. |
| 331 | + To trigger an event use <code>$(combobox).scombobox('lisneter')</code> syntax; to trigger event with a certain namespace, use |
| 332 | + <code>$(combobox).scombobox('lisneter', 'namespace')</code> syntax.</td> |
328 | 333 | </tr>
|
329 | 334 | <tr>
|
330 | 335 | <th>Event type</th>
|
|
338 | 343 | </tr>
|
339 | 344 | <tr>
|
340 | 345 | <td>focus</td>
|
341 |
| - <td><input class="dproCombobox-display" /></td> |
| 346 | + <td><input class="scombobox-display" /></td> |
342 | 347 | <td colspan="2">On filter input focus. This event does not matter when using 'checkboxes' mode, because this combobox does not have such text field.td>
|
343 | 348 | </tr>
|
344 | 349 | <tr>
|
345 | 350 | <td>blur</td>
|
346 |
| - <td><input class="dproCombobox-display" /></td> |
| 351 | + <td><input class="scombobox-display" /></td> |
347 | 352 | <td colspan="2">On filter input blur. This event does not matter when using 'checkboxes' mode, because this combobox does not have such text field.</td>
|
348 | 353 | </tr>
|
349 | 354 | <tr>
|
350 | 355 | <td>keyup</td>
|
351 |
| - <td><input class="dproCombobox-display" /></td> |
| 356 | + <td><input class="scombobox-display" /></td> |
352 | 357 | <td colspan="2">On filter input keyup. This event does not matter when using 'checkboxes' mode, because this combobox does not have such text field.</td>
|
353 | 358 | </tr>
|
354 | 359 | <tr>
|
355 | 360 | <td>keydown</td>
|
356 |
| - <td><input class="dproCombobox-display" /></td> |
| 361 | + <td><input class="scombobox-display" /></td> |
357 | 362 | <td colspan="2">On filter input keydown. This event does not matter when using 'checkboxes' mode, because this combobox does not have such text field.</td>
|
358 | 363 | </tr>
|
359 | 364 | <tr>
|
360 | 365 | <td>keypress</td>
|
361 |
| - <td><input class="dproCombobox-display" /></td> |
| 366 | + <td><input class="scombobox-display" /></td> |
362 | 367 | <td colspan="2">On filter input keypress. This event does not matter when using 'checkboxes' mode, because this combobox does not have such text field.</td>
|
363 | 368 | </tr>
|
| 369 | +<tr> |
| 370 | + <td>beforeOpen</td> |
| 371 | + <td><div class="scombobox"></div></td> |
| 372 | + <td colspan="2">This event fires just before div with options slides down.</td> |
| 373 | +</tr> |
| 374 | +<tr> |
| 375 | + <td>beforeClose</td> |
| 376 | + <td><div class="scombobox"></div></td> |
| 377 | + <td colspan="2">This event fires just before div with options slides up.</td> |
| 378 | +</tr> |
| 379 | +<tr> |
| 380 | + <td>afterOpen</td> |
| 381 | + <td><div class="scombobox"></div></td> |
| 382 | + <td colspan="2">This event fires just after div with options slides down.</td> |
| 383 | +</tr> |
| 384 | +<tr> |
| 385 | + <td>afterClose</td> |
| 386 | + <td><div class="scombobox"></div></td> |
| 387 | + <td colspan="2">This event fires just after div with options slides up.</td> |
| 388 | +</tr> |
364 | 389 | <tr>
|
365 | 390 | <td>click</td>
|
366 |
| - <td><input class="dproCombobox-display" /></td> |
| 391 | + <td><input class="scombobox-display" /></td> |
367 | 392 | <td colspan="2">On filter input click. This event does not matter when using 'checkboxes' mode, because this combobox does not have such text field.</td>
|
368 | 393 | </tr>
|
369 | 394 | <tr>
|
370 | 395 | <td>mousedown</td>
|
371 |
| - <td><input class="dproCombobox-display" /></td> |
| 396 | + <td><input class="scombobox-display" /></td> |
372 | 397 | <td colspan="2">On filter input mousedown. This event does not matter when using 'checkboxes' mode, because this combobox does not have such text field.</td>
|
373 | 398 | </tr>
|
374 | 399 | <tr>
|
375 | 400 | <td>clickDropdown</td>
|
376 |
| - <td><div class="dproCombobox-list" /></td> |
| 401 | + <td><div class="scombobox-list" /></td> |
377 | 402 | <td colspan="2">This event is a click on the dropdown button located in the right corner of a combobox.</td>
|
378 | 403 | </tr>
|
379 | 404 | </tbody>
|
|
0 commit comments