Topic: Font Awesome Icons in mdb-select options
akrolis
pro
asked 4 years 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' }
];
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Opened
Specification of the issue
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 8.8.1
- Device: Desktop
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: Yes
Konrad Stępień staff commented 4 years 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.