Topic: mdb-select multiselect: change text displayed

Giovanni De Stefano priority asked 4 years ago


Hello,

I have a multi-select in a reactive form:

 <mdb-select formControlName="documentTypes"
              [options]="documentTypesOptions"
              [multiple]="true"
              [highlightFirst]="false"
              [filterEnabled]="true">
  </mdb-select>

When nothing is selected, the mdb-select shows the text set in the placeholder so I can do something like "Please select your options".

When something is selected, the mdb-select shows an horizontal list of labels of the selected options.

What I would like to do is: when all options are selected, I want mdb-select to show a custom text such as "All options are selected" instead of the horizontal list of labels of the selected options.

How can I achieve this?

Any help is much appreciated!

Thanks, Giovanni


Arkadiusz Idzikowski staff answered 4 years ago


It's not possible to customize this text in the current version of the mdb-select component. We have plans to add this feature but we can't provide an ETA yet.


FREE CONSULTATION

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

Status

Closed

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: 8.3.1
  • Device: All
  • Browser: All
  • OS: All
  • Provided sample code: Yes
  • Provided link: No