davidstutz / bootstrap-multiselect

JQuery multiselect plugin based on Twitter Bootstrap.
https://davidstutz.github.io/bootstrap-multiselect/
Other
3.66k stars 1.98k forks source link

some options don't work by setOptions #1061

Open martinstudio opened 5 years ago

martinstudio commented 5 years ago

Hello everyone, I am experiencing the following problems during use.

`$('select[data-role=multiselect]').multiselect('setOptions',{
                buttonWidth: '200px',//not work
                maxHeight:200,//not work
                buttonClass: 'btn btn-link',//not work
                nonSelectedText: 'Please Select',//work
                enableClickableOptGroups: true,//work
                numberDisplayed: 3,//work
                templates: {
                    button: '',
                }//not work
            });
            $('select[data-role=multiselect]').multiselect('rebuild');`

buttonWidth,maxHeight,buttonClass,templates do not work nonSelectedText,enableClickableOptGroups,numberDisplayed work Can anyone help me?thanks! My English is very poor,sorry!

marcelodive commented 5 years ago

buttonWidth not working for me too :/

shiuanC commented 2 years ago

is the bug fixed ...... I met a exactly the same problem now