Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide a FontAwesome label example. #55

Closed
humblecoder opened this issue Feb 27, 2018 · 3 comments
Closed

Please provide a FontAwesome label example. #55

humblecoder opened this issue Feb 27, 2018 · 3 comments

Comments

@humblecoder
Copy link

I've attempted to use FontAwesome as a label to no avail. I've attempted the following:

<toggle-button :width="80" :height="30" :value="true" :labels="{checked: '<i class="fas fa-arrows-alt-h"></i>', unchecked: 'Bar'}"/>

No matter how I organize/adjust my quotes/double-quotes it incorrectly parses the string and simply outputs a portion of the raw HTML. What am I missing?

@euvl
Copy link
Owner

euvl commented Feb 27, 2018

you have a typo.. its fa, not fas

@humblecoder
Copy link
Author

@euvl I'm trying to use FA5. Still, that shouldn't matter. It's a parsing issue. It's literally outputting the HTML markup. If there is a version of the icon it will sometimes output it. Please see attached screenshot.

screen shot 2018-02-27 at 11 34 19 am

That said, would you mind just presenting an example?

@humblecoder
Copy link
Author

humblecoder commented Feb 27, 2018

Actually, copying and pasting the exact same FontAwesome strings into a data() object works, however, placing them in-line doesn't. I suppose this will work. Thanks.

@euvl euvl closed this as completed Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants