You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But what if I want to use FontAwesome icons in some PrimeVue components such as Menubar? Say that I have <Menubar :model="items" /> with items equal to:
constemit=defineEmits(['about'])constitems=ref([{label: 'Help',items: [{label: 'About',icon: 'XXX',// <--- What do I put here?...command: ()=>{emit('about')}}]}])
Then, what do I set icon to? Hopefully, I am missing something very obvious...?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have integrated FontAwesome icons in my Vue.js app as described in https://docs.fontawesome.com/web/use-with/vue and it's all working fine. IOW, if I have something like
<FontAwesomeIcon icon="house" />
then I can see https://fontawesome.com/icons/house?f=classic&s=solid in my app, as expected.But what if I want to use FontAwesome icons in some PrimeVue components such as Menubar? Say that I have
<Menubar :model="items" />
withitems
equal to:Then, what do I set
icon
to? Hopefully, I am missing something very obvious...?Cheers, Alan.
Beta Was this translation helpful? Give feedback.
All reactions