Topic: Multiselect: selectAll config option not working

Jacopo Gucciardi priority asked 5 months ago


Expected behavior According to Select API docs (https://mdbootstrap.com/docs/standard/forms/select/#docsTabsAPI), there's a boolean parameter to disable the "Select All" option. It should work both by standard initialization (data-mdb-select-init) and in js initialization

Actual behavior The "Select all" option is disabled only when using js initialization, but it remains there when adding data-mdb-selectAll="false" to the tag

Resources (screenshots, code snippets etc.) https://mdbootstrap.com/snippets/standard/gucciardi/6115646#html-tab-view


Kamila Pieńkowska staff answered 5 months ago


Options in atributes are suppose to be passed as kebeb case. So in your situation it will be: data-mdb-select-all="false"


Jacopo Gucciardi priority commented 5 months ago

Thank you Kamila for your quick response. May I suggest that you add this rule to your documentation pages? I can't find any mention of this requirement.


Kamila Pieńkowska staff commented 5 months ago

We will try to implement this in our documentation.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 7.2.0
  • Device: PC
  • Browser: Chrome
  • OS: Win11
  • Provided sample code: No
  • Provided link: Yes