Font Awesome Icons in mdb-select options

web
mobile

Topic: Font Awesome Icons in mdb-select options

akrolis pro asked 6 months ago

Is it possible to display Font Aweseome icons in a mdb-select option?

I've tried the 'icon' property from the documentation: https://mdbootstrap.com/docs/angular/forms/select/#e-icons but it seems to only allow images, not actual icons:

  this.iconsSelect = [
    { value: '1', label: 'Option 1', icon: 'https://mdbootstrap.com/img/Photos/Avatars/avatar-1.jpg' }
  ];

Konrad Stępień staff commented 6 months ago

Hi @akrolis,

Generally, it is not possible to sets icons to select, but you can try download icon like SVG file and then import to your app.component.ts.

Also, I can save your suggestion to our nice to have list.


Please insert min. 20 characters.
Status

Open

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: Angular
  • MDB Version: 8.8.1
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes