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
Copy file name to clipboardExpand all lines: README.md
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Include **jQuery Selectric:**
25
25
<scriptsrc="js/jquery.selectric.min.js"></script>
26
26
```
27
27
28
-
Include **jQuery Selectric:** styles, and change it to your taste :D
28
+
Include **jQuery Selectric** styles, and change it to your taste :D_(please refer to our [demo page](http://lcdsantos.github.io/jQuery-Selectric/demo.html) for more themes and other customizations)_
29
29
30
30
```html
31
31
<linkrel="stylesheet"href="selectric.css">
@@ -185,6 +185,20 @@ $('select').selectric({
185
185
*/
186
186
optionsItemBuilder:'{text}',
187
187
188
+
/*
189
+
* Type: String or Function
190
+
* Description: Define how each select label should be rendered. Allows HTML.
191
+
*
192
+
* If it's a string, all keys wrapped in brackets will be replaced by
193
+
* the respective values in currItem. Available keys are:
194
+
* 'value', 'text', 'slug', 'disabled'.
195
+
*
196
+
* If it's a function, it will be called with the following parameters:
197
+
* (currItem). The function must return a string, no keys will be
198
+
* replaced in this method.
199
+
*/
200
+
labelBuilder:'{text}',
201
+
188
202
/*
189
203
* Type: Boolean
190
204
* Description: Prevent scroll on window when using mouse wheel inside options box
<p>3. Put styles in your CSS and change it to your taste :D <spanclass="note">(please refer to our <ahref="./demo.html">demo page</a> for more themes and other customizations)</span></p>
109
-
<predata-src="selectric.css"></pre>
108
+
<p>3. Include <strong>jQuery Selectric</strong> styles, and change it to your taste :D <spanclass="note">(please refer to our <ahref="./demo.html">demo page</a> for more themes and other customizations)</span></p>
0 commit comments