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

Fontawesome instead of text #588

Open
jjgonver opened this issue Aug 23, 2016 · 2 comments
Open

Fontawesome instead of text #588

jjgonver opened this issue Aug 23, 2016 · 2 comments
Milestone

Comments

@jjgonver
Copy link

Is there a way to put a FontAwesome instead of text on data-on-text and data-off-text? Thanks

@jymbob
Copy link

jymbob commented Sep 19, 2016

It looks like the code just takes whatever is written in OnText and OffText and pastes it verbatim inside a span.
I can't see any reason why initialising it with:
onText: '<i class="fa fa-check"></i> Yes', offText: '<i class="fa fa-times"></i> No'

should give you any problems.

@LostCrew LostCrew added this to the 3.4.0 milestone Feb 8, 2017
@LostCrew
Copy link
Member

LostCrew commented Feb 8, 2017

As @jymbob pointed out, currently you can use HTML inside text strings. I will add it to documentation in future, as well as other common use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants