Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: mdb-select without placeholder

Ignacio Mariano Chiodo pro asked 7 years ago


Hi! I wanna know if it's possible to use a mdb-select without a placeholder, because i want to give the select a default value, for example: i have a products list and a mdb-select where they're shown, and the first element of the mdb-select is a default option called "All" so if nothing else is selected, all the products will be showed. In the mdb-select documentation, there's an example where the default element is the first option, and not the placeholder, but in the code i can't tell the difference between that and the one that has the placeholder as first item. Here's the documentation: https://mdbootstrap.com/angular/advanced/material-select/ And the tittle wich i reference is "COLOR VARIATIONS" Thank you very much !!

Dawid Adach pro answered 7 years ago


Dear Ignacio,

you can simply use ngModel for that, please check following thread:

https://mdbootstrap.com/support/default-value-select-angular/


Ignacio Mariano Chiodo pro commented 7 years ago

Great! it worked just fine ! Thank you very much!

Ignacio Mariano Chiodo pro commented 7 years ago

Great! it worked just fine ! Thank you very much!

Ignacio Mariano Chiodo pro commented 7 years ago

Great! it worked just fine ! Thank you very much!


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags