Disable \select all\ option in multiselect


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

KuebelElch15 pro asked 6 years ago

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

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 answered 5 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 5 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.


Sebastian Kaczmarek staff pro premium answered 6 years ago

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

Sin pro answered 6 years ago

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


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
  • User: 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