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

bootstrap glyphicon

Open meirkl opened this issue 7 years ago • 2 comments

Hi, do you support bootstrap glyphicon?

I'm trying this:

$("[name='pets_check_box']").bootstrapSwitch('onText', '<span class="glyphicon glyphicon-ok"></span>');
$("[name='pets_check_box']").bootstrapSwitch('offText', '<span class="glyphicon glyphicon-remove"></span>');

and the glyphicon is not displayed... if i use Fontawesome icons it works fine.

$("[name='pets_check_box']").bootstrapSwitch('onText', '<i class="fa fa-check" aria-hidden="true"></i>');
$("[name='pets_check_box']").bootstrapSwitch('offText', '<i class="fa fa-times" aria-hidden="true"></i>');

meirkl avatar Feb 28 '18 09:02 meirkl

Is your site using glyphicons anywhere else in the page ? (problem may be calling the glyphicon stylesheet)

djibe avatar Apr 14 '19 11:04 djibe

It was using. In the end i used something else. Don't mind if you close this issue.

meirkl avatar Apr 14 '19 17:04 meirkl