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
@@ -72,8 +68,7 @@ Put styles in your CSS and change it to your taste :D
72
68
color: #BBB;
73
69
text-align: center;
74
70
font: 0/0 a;
75
-
/* IE Fix */
76
-
*font: 20px/30pxLucida Sans Unicode, Arial Unicode MS, Arial;
71
+
*font: 20px/30pxLucida Sans Unicode,Arial Unicode MS,Arial;
77
72
}
78
73
79
74
.selectric.button:after {
@@ -122,9 +117,6 @@ Put styles in your CSS and change it to your taste :D
122
117
opacity: 0.5;
123
118
cursor: default;
124
119
-webkit-touch-callout: none;
125
-
-webkit-user-select: none;
126
-
-moz-user-select: none;
127
-
-ms-user-select: none;
128
120
user-select: none;
129
121
}
130
122
@@ -163,8 +155,6 @@ Put styles in your CSS and change it to your taste :D
163
155
display: block!important;
164
156
}
165
157
166
-
/* Items box */
167
-
168
158
.selectricItems {
169
159
display: none;
170
160
position: absolute;
@@ -174,12 +164,10 @@ Put styles in your CSS and change it to your taste :D
174
164
background: #F9F9F9;
175
165
border: 1pxsolid#CCC;
176
166
z-index: 9998;
177
-
-webkit-box-shadow: 0010px-6px;
178
167
box-shadow: 0010px-6px;
179
168
}
180
169
181
-
.selectricItemsul,
182
-
.selectricItemsli {
170
+
.selectricItemsul,.selectricItemsli {
183
171
list-style: none;
184
172
padding: 0;
185
173
margin: 0;
@@ -277,12 +265,6 @@ $(function(){
277
265
<td>Boolean</td>
278
266
<td>Initialize plugin on mobile browsers</td>
279
267
</tr>
280
-
<tr>
281
-
<td>border</td>
282
-
<td>1</td>
283
-
<td>Integer</td>
284
-
<td>Options box border thickness</td>
285
-
</tr>
286
268
<tr>
287
269
<td>openOnHover</td>
288
270
<td>false</td>
@@ -322,15 +304,31 @@ $(function(){
322
304
323
305
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>
324
306
</tr>
307
+
<tr>
308
+
<td>preventWindowScroll</td>
309
+
<td>true</td>
310
+
<td>Boolean</td>
311
+
<td>Prevent scroll on window when using mouse wheel inside options box to match common browsers behavior.</td>
312
+
</tr>
325
313
</table>
326
314
327
315
##Public methods:
328
316
329
317
```js
330
-
$('select').selectric('refresh'); // Reconstruct the instance of plugin
331
-
$('select').selectric('destroy'); // Destroy Selectric and go back to normal
318
+
var Selectric =$('select').data('selectric');
319
+
320
+
Selectric.open(); // Open options
321
+
Selectric.close(); // Close options
322
+
Selectric.destroy(); // Destroy select and go back to normal
323
+
Selectric.refresh(); // Reconstruct the plugin options box
324
+
Selectric.init(); // Reinitialize the plugin
325
+
326
+
// Or...
332
327
$('select').selectric('open'); // Open options
333
328
$('select').selectric('close'); // Close options
329
+
$('select').selectric('destroy'); // Destroy select and go back to normal
330
+
$('select').selectric('refresh'); // Reconstruct the plugin options box
331
+
$('select').selectric('init'); // Reinitialize the plugin
0 commit comments