Topic: "Select all" option for multiselect comp. In the library 4.8.8 jQuery

hoene-erni free asked 5 years ago


*Expected behavior:*I would like to have the possibility to disable resp. hide the "select all" function in the Multiselect component

*Actual behavior:*The "select all" option is added automatically to the component and i can not disable this by using a certain parameter.Resources (screenshots, code snippets etc.)

Question by the way, has there be a change from 4.8.2 to 4.8.8 concerning the behavior of the multiple select box?


root-nine priority commented 5 years ago

I did that via css, found no other option:

.select-dropdown li.select-toggle-all { display: none !important; }


Piotr Glejzer staff answered 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.

https://mdbootstrap.com/snippets/jquery/piotr-glejzer/1194376

I added three options in js what you can include in your project or 1 options from CSS ( thanks @root-nine :) ) .

Have a nice day.


hoene-erni free commented 5 years ago

Thank you very much, that little css tweak was exactly what i was looking for!



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: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.8
  • Device: Notebook HP
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No