Closed htdung83 closed 2 years ago
Correct - Bootstrap 5 is not currently supported. You can use this library with Bootstrap 3 or Bootstrap 4.
Any plans on supporting 5?
It should help:
$('#custom-select').multiselect({
templates: {
button: '<button type="button" class="multiselect dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><span class="multiselect-selected-text"></span></button>'
},
});
It should help:
$('#custom-select').multiselect({ templates: { button: '<button type="button" class="multiselect dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><span class="multiselect-selected-text"></span></button>' }, });
It should help:
$('#custom-select').multiselect({ templates: { button: '<button type="button" class="multiselect dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><span class="multiselect-selected-text"></span></button>' }, });
Thankss a lot
$.fn.multiselect.Constructor.prototype.defaults.templates.button = '<button type="button" class="multiselect dropdown-toggle form-control" data-bs-toggle="dropdown"><span class="multiselect-selected-text"></span></button>'
text-left --> text-start and text-right --> text.end
$.fn.multiselect.Constructor.prototype.defaults.buildButton
if (this.options.buttonTextAlignment) {
switch (this.options.buttonTextAlignment) {
case 'left':
this.$button.addClass('text-start');
break;
case 'center':
this.$button.addClass('text-center');
break;
case 'right':
this.$button.addClass('text-end');
break;
}
}
Closing with reference to #1189.
Correct - Bootstrap 5 is not currently supported. You can use this library with Bootstrap 3 or Bootstrap 4.
Thanks, that explains why I didn't get any dropdown, was hard to figure out with the lack of mention in the guide and no errors in the console, this should be mentioned in the guide and ideally an error in the console. =)
Also popper.js is required for dropdowns, neither any mentions in getting started as far I saw.
I am using Bootstrap 5.1.3 and try to install this plugin but it seems not to work with Bootstrap 5. The screen showed none selected unstyled button only. The list, even, doesn't show on clicking event. .