Data attributes for multiselect


Topic: Data attributes for multiselect

Joachim Schneider pro premium priority asked 7 months 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 7 months ago

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


Michał Duszak staff commented 7 months ago

I love it! Thank you for contribution.


Michał Duszak staff answered 7 months ago

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

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


Please insert min. 20 characters.
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