You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every class in 'postfixes' should be separate with a space and follow this exact order: 'Input Items Open Disabled TempShow HideSelect Wrapper Hover Responsive Above Scroll'</td>
355
-
</tr>
356
-
<tr>
357
-
<td>optionsItemBuilder</td>
358
-
<td>'{text}'</td>
359
-
<td>String or Function</td>
360
-
<td>Define how each option should be rendered inside its <li> element.
361
-
362
-
If it's a string, all keys wrapped in brackets will be replaced by the respective values in itemData. Available keys are: 'value', 'text', 'slug', 'disabled'.
363
-
364
-
If it's a function, it will be called with the following parameters: (itemData, element, index). The function must return a string, no keys will be replaced in this method.</td>
365
-
</tr>
366
-
<tr>
367
-
<td>preventWindowScroll</td>
368
-
<td>true</td>
369
-
<td>Boolean</td>
370
-
<td>Prevent scroll on window when using mouse wheel inside options box to match common browsers behavior.</td>
371
-
</tr>
372
-
<tr>
373
-
<td>inheritOriginalWidth</td>
374
-
<td>false</td>
375
-
<td>Boolean</td>
376
-
<td>Inherit width from original element</td>
377
-
</tr>
378
-
<tr>
379
-
<td>allowWrap</td>
380
-
<td>true</td>
381
-
<td>Boolean</td>
382
-
<td>Determine if current selected option should jump to first (or last) once reach the end (of start) item of list upon keyboard arrow navigation.</td>
383
-
</tr>
384
-
</table>
233
+
```js
234
+
{
235
+
/*
236
+
* Type: Function
237
+
* Description: Function called before plugin initialize
238
+
*/
239
+
onBeforeInit:function() {},
240
+
241
+
/*
242
+
* Type: Function
243
+
* Description: Function called plugin has been fully initialized
244
+
*/
245
+
onInit:function() {},
246
+
247
+
/*
248
+
* Type: Function
249
+
* Description: Function called plugin has been fully initialized
250
+
*/
251
+
onBeforeOpen:function() {},
252
+
253
+
/*
254
+
* Type: Function
255
+
* Description: Function called after select options opens
256
+
*/
257
+
onOpen:function() {},
258
+
259
+
/*
260
+
* Type: Function
261
+
* Description: Function called before select options closes
262
+
*/
263
+
onBeforeClose:function() {},
264
+
265
+
/*
266
+
* Type: Function
267
+
* Description: Function called after select options closes
268
+
*/
269
+
onClose:function() {},
270
+
271
+
/*
272
+
* Type: Function
273
+
* Description: Function called before select options change
274
+
*/
275
+
onBeforeChange:function() {},
276
+
277
+
/*
278
+
* Type: Function
279
+
* Description: Function called when select options change
280
+
*/
281
+
onChange:function(element) {
282
+
$(element).change();
283
+
},
284
+
285
+
/*
286
+
* Type: Function
287
+
* Description: Function called when the Selectric is refreshed
0 commit comments