Multiselect: selectAll config option not working


Topic: Multiselect: selectAll config option not working

Gucciardi pro premium priority asked 7 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 7 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"


Gucciardi pro premium priority commented 7 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 7 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
  • User: Pro
  • 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