Topic: select multiple Default value

moulot priority asked 4 years ago


Hello, how to set the default values for a "select multiple" if i have an array of the values to be selected in the select? thank you


Arkadiusz Idzikowski staff answered 4 years ago


Please take a look at our multiselect documentation. You can find there examples for both template driven and reactive forms:

Using ngModel: https://mdbootstrap.com/docs/angular/forms/multiselect/#preselect-template

Using formControlName: https://mdbootstrap.com/docs/angular/forms/multiselect/#preselect-reactive



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 Angular
  • MDB Version: 8.8.2
  • Device: dell notebook
  • Browser: chrome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: No