@@ -1270,6 +1270,41 @@ <h2><a name="no-results-text-support" class="anchor" href="#no-results-text-supp
1270
1270
</ div >
1271
1271
</ div >
1272
1272
1273
+ < h2 > < a name ="select-all-results-text-support " class ="anchor " href ="#select-all-results-text-support "> Select all Results Support</ a > </ h2 >
1274
+ < div class ="side-by-side clearfix ">
1275
+ < p > Adding an option to select all results is as simple as passing an option, the text can also be customised:</ p >
1276
+ < pre > < code class ="language-javascript "> $(".chzn-select").chosen({enable_select_all: true, select_all_results_text: "Select all results!"}); </ code > </ pre >
1277
+ < p > </ p >
1278
+ < div >
1279
+ < em > Multiple Select</ em >
1280
+ < select style ="width:350px; " multiple class ="chzn-select-all-results " tabindex ="12 ">
1281
+ < option value =""> </ option >
1282
+ < option > American Black Bear</ option >
1283
+ < option > Asiatic Black Bear</ option >
1284
+ < option > Brown Bear</ option >
1285
+ < option > Giant Panda</ option >
1286
+ < option > Sloth Bear</ option >
1287
+ < option > Sun Bear</ option >
1288
+ < option > Polar Bear</ option >
1289
+ < option > Spectacled Bear</ option >
1290
+ </ select >
1291
+ </ div >
1292
+ < div >
1293
+ < em > Multiple Select Custom Message</ em >
1294
+ < select style ="width:350px; " multiple class ="chzn-select-all-results-custom " tabindex ="13 ">
1295
+ < option value =""> </ option >
1296
+ < option > American Black Bear</ option >
1297
+ < option > Asiatic Black Bear</ option >
1298
+ < option > Brown Bear</ option >
1299
+ < option > Giant Panda</ option >
1300
+ < option > Sloth Bear</ option >
1301
+ < option > Sun Bear</ option >
1302
+ < option > Polar Bear</ option >
1303
+ < option > Spectacled Bear</ option >
1304
+ </ select >
1305
+ </ div >
1306
+ </ div >
1307
+
1273
1308
< h2 > < a name ="limit-selected-options-in-multiselect " class ="anchor " href ="#limit-selected-options-in-multiselect "> Limit Selected Options in Multiselect</ a > </ h2 >
1274
1309
< div class ="side-by-side clearfix ">
1275
1310
< p > You can easily limit how many options the user can select:</ p >
@@ -1462,6 +1497,8 @@ <h2><a name="credits" class="anchor" href="#credits">Credits</a></h2>
1462
1497
'.chzn-select-deselect' : { allow_single_deselect :true } ,
1463
1498
'.chzn-select-no-single' : { disable_search_threshold :10 } ,
1464
1499
'.chzn-select-no-results' : { no_results_text :'Oops, nothing found!' } ,
1500
+ '.chzn-select-all-results' : { enable_select_all :true } ,
1501
+ '.chzn-select-all-results-custom' : { enable_select_all :true , select_all_results_text : "Select all results!" } ,
1465
1502
'.chzn-select-width' : { width :"95%" }
1466
1503
}
1467
1504
for ( var selector in config ) {
0 commit comments