Topic: Disable \"select all\" option in multiselect

KuebelElch15 pro asked 5 years ago


Hello, is there a way to disable the "select-all" option on multiselect?

Julien Moulin free answered 4 years ago


I'm waiting for an option to disable select-all too, but for now, I just add a class to hide this element.

Simply add to your css

.select-wrapper.disable-toggle-all  .select-toggle-all {
    display: none;
}

And use it like this

<select class="mdb-select disable-toggle-all" multiple>
    <!-- some options -->
</select>

hoene-erni free answered 4 years ago


Hello guys, is there any update on that topic. I also would like to disable the select all option by using a simple parameter in the component. Because this is often a normal use case that you don't want to have that option included.


Piotr Glejzer staff commented 4 years ago

I think it sill not possible with that. I added this task to the jQuery team. I think it's easy to implement so I think they will probably do it fast.


AgileTuan pro answered 5 years ago


Please help me!
I want to make multiselect has options "Select all" (toggle).
Thank you so much!


Sebastian Kaczmarek staff answered 5 years ago


Currently, there is no option to set it by some setting. You have to use a custom code

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.10
  • Device: all
  • Browser: all
  • OS: all
  • Provided sample code: No
  • Provided link: No