Data attributes for multiselect


Topic: Data attributes for multiselect

Joachim Schneider pro premium priority asked 3 years ago

Inside a multiselect I would like to show the "options-selected-label" after 3 selected options. Currently it is showing the label after 6 items selected. Is there a data-attribute like:

data-mdb-max-selected-options="2"

If yes, are there more attributes than described at: https://mdbootstrap.com/docs/standard/forms/select ?


UNNdev pro premium priority answered 3 years ago

displayedLabels described on the API page https://mdbootstrap.com/docs/standard/forms/select/#docsTabsAPI


Michał Duszak staff commented 3 years ago

I love it! Thank you for contribution.


Michał Duszak staff answered 3 years ago

You can use displayedLabels option. Here's a snippet!

https://mdbootstrap.com/snippets/standard/m-duszak/3132036


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 3.7.1
  • Device: Web
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes