We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e0b7f5 commit fd3135cCopy full SHA for fd3135c
src/jquery.multiselect.js
@@ -850,7 +850,12 @@
850
851
switch(key) {
852
case 'header':
853
- menu.find('div.ui-multiselect-header')[value ? 'show' : 'hide']();
+ if(typeof value === 'boolean') {
854
+ this.header[value ? 'show' : 'hide']();
855
+ } else if(typeof value === 'string') {
856
+ this.headerLinkContainer.children("li:not(:last-child)").remove();
857
+ this.headerLinkContainer.prepend("<li>" + value + "</li>");
858
+ }
859
break;
860
case 'checkAllText':
861
menu.find('a.ui-multiselect-all span').eq(-1).text(value);
0 commit comments