@@ -891,7 +891,7 @@ Custom the item style.
891
891
892
892
### The Refresh
893
893
894
- Reloads the Multiple Select.
894
+ Reloads the Multiple Select.
895
895
If you're dynamically adding/removing option tags on the original select via AJAX or DOM manipulation methods, call refresh to reflect the changes.
896
896
897
897
<p >
@@ -956,7 +956,7 @@ If you're dynamically adding/removing option tags on the original select via AJA
956
956
957
957
### The Destroy
958
958
959
- Destroy the Multiple Select.
959
+ Destroy the Multiple Select.
960
960
961
961
If you want remove the multiple select properly.
962
962
@@ -1076,90 +1076,57 @@ $('select').multipleSelect('destroy');
1076
1076
var values = $ .map (view .children , function (child ){
1077
1077
return child .value ;
1078
1078
}).join (' , ' );
1079
- $eventResult .text (' Optgroup ' + view .label + ' ' +
1079
+ $eventResult .text (' Optgroup ' + view .label + ' ' +
1080
1080
(view .checked ? ' checked' : ' unchecked' ) + ' : ' + values);
1081
1081
},
1082
1082
onClick : function (view ) {
1083
- $eventResult .text (view .label + ' (' + view .value + ' ) ' +
1083
+ $eventResult .text (view .label + ' (' + view .value + ' ) ' +
1084
1084
(view .checked ? ' checked' : ' unchecked' ));
1085
1085
}
1086
1086
});
1087
1087
</script >
1088
1088
</body >
1089
1089
```
1090
1090
1091
- ### OpenOnHover
1092
-
1093
- <p id =" e22 " >
1094
- <select class="w300" multiple="multiple">
1095
- <option value="1">Monday</option>
1096
- <option value="2">Tuesday</option>
1097
- <option value="3">Wednesday</option>
1098
- <option value="4">Thursday</option>
1099
- <option value="5">Friday</option>
1100
- <option value="6">Saturday</option>
1101
- <option value="7">Sunday</option>
1102
- </select>
1103
- </p >
1104
-
1105
- ``` html
1106
- <head >
1107
- <link href =" multiple-select.css" rel =" stylesheet" />
1108
- </head >
1109
- <body >
1110
- <select multiple =" multiple" >
1111
- <option value =" 1" >Monday</option >
1112
- ...
1113
- <option value =" 7" >Sunday</option >
1114
- </select >
1115
- <script src =" multiple-select.js" ></script >
1116
- <script >
1117
- $ (" select" ).multipleSelect ({
1118
- openOnHover: true
1119
- });
1120
- </script >
1121
- </body >
1122
- ```
1123
-
1124
1091
## Documentation
1125
1092
1126
1093
### Constructor
1127
1094
1128
1095
#### isOpen
1129
1096
1130
- Type: boolean
1097
+ Type: boolean
1131
1098
1132
1099
Whether or not Multiple Select open the select dropdown.
1133
1100
1134
1101
By default this option is set to ``` false ``` .
1135
1102
1136
1103
#### placeholder
1137
1104
1138
- Type: string
1105
+ Type: string
1139
1106
1140
1107
A placeholder value can be defined and will be displayed until you select a item.
1141
1108
1142
1109
By default this option is set to ``` '' ``` .
1143
1110
1144
1111
#### selectAll
1145
1112
1146
- Type: boolean
1113
+ Type: boolean
1147
1114
1148
1115
Whether or not Multiple Select show select all checkbox.
1149
1116
1150
1117
By default this option is set to ``` true ``` .
1151
1118
1152
1119
#### selectAllText
1153
1120
1154
- Type: string
1121
+ Type: string
1155
1122
1156
1123
Multiple Select select all checkbox text.
1157
1124
1158
1125
By default this option is set to ``` Select all ``` .
1159
1126
1160
1127
#### selectAllDelimiter
1161
1128
1162
- Type: Array
1129
+ Type: Array
1163
1130
1164
1131
Multiple Select select all checkbox delimiter.
1165
1132
@@ -1199,15 +1166,15 @@ By default this option is set to ```false```.
1199
1166
1200
1167
#### multiple
1201
1168
1202
- Type: boolean
1169
+ Type: boolean
1203
1170
1204
1171
Whether or not Multiple Select show multiple items in a row.
1205
1172
1206
1173
By default this option is set to ``` false ``` .
1207
1174
1208
1175
#### multipleWidth
1209
1176
1210
- Type: integer
1177
+ Type: integer
1211
1178
1212
1179
Multiple Select show multiple items width.
1213
1180
@@ -1302,7 +1269,7 @@ Bind an event handler to the "blur"
1302
1269
1303
1270
#### onOptgroupClick
1304
1271
1305
- Fires when a an optgroup label is clicked on.
1272
+ Fires when a an optgroup label is clicked on.
1306
1273
1307
1274
``` javascript
1308
1275
onOptgroupClick : function (view ) {
@@ -1316,7 +1283,7 @@ onOptgroupClick: function(view) {
1316
1283
1317
1284
#### onClick
1318
1285
1319
- Fires when a checkbox is checked or unchecked.
1286
+ Fires when a checkbox is checked or unchecked.
1320
1287
1321
1288
``` javascript
1322
1289
onClick : function (view ) {
@@ -1336,7 +1303,7 @@ Gets the selected values.
1336
1303
Parameter: type
1337
1304
1338
1305
Type: string
1339
-
1306
+
1340
1307
The type of selected items. value or text
1341
1308
1342
1309
The default is ``` value ``` .
@@ -1353,7 +1320,7 @@ Sets the selected values.
1353
1320
Parameter: values
1354
1321
1355
1322
Type: array
1356
-
1323
+
1357
1324
The values of selected items.
1358
1325
1359
1326
``` javascript
@@ -1410,7 +1377,7 @@ $('select').multipleSelect('blur');
1410
1377
1411
1378
#### refresh
1412
1379
1413
- Reloads the Multiple Select.
1380
+ Reloads the Multiple Select.
1414
1381
1415
1382
If you're dynamically adding/removing option tags on the original select via AJAX or DOM manipulation methods, call refresh to reflect the changes.
1416
1383
@@ -1420,7 +1387,7 @@ $('select').multipleSelect('refresh');
1420
1387
1421
1388
#### destroy
1422
1389
1423
- Destroy the Multiple Select.
1390
+ Destroy the Multiple Select.
1424
1391
1425
1392
If you want remove the multiple select properly.
1426
1393
0 commit comments