bootstrap-switch icon indicating copy to clipboard operation
bootstrap-switch copied to clipboard

Fontawesome instead of text

Open jjgonver opened this issue 8 years ago • 2 comments

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

jjgonver avatar Aug 23 '16 16:08 jjgonver

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.

jymbob avatar Sep 19 '16 12:09 jymbob

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.

LostCrew avatar Feb 08 '17 16:02 LostCrew