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

Is it possible to use HTML for labels? #492

Open
elementalTIMING opened this issue Dec 25, 2023 · 1 comment
Open

Is it possible to use HTML for labels? #492

elementalTIMING opened this issue Dec 25, 2023 · 1 comment

Comments

@elementalTIMING
Copy link

Hi,

is it possible to use HTML or fontawsome icons for the labels?

<ui-switch 
	size="small" 
	checkedLabel="M" 
	uncheckedLabel="W" 
	[(ngModel)]="gender" 
	(valueChange)="..." />

So something like this:

<ui-switch 
	size="small" 
	[checkedLabelHTML]="<i class="fa fa-mars"></i>" 
	[uncheckedLabelHTML]="<i class="fa fa-venus"></i>" 
	[(ngModel)]="gender" 
	(valueChange)="..." />

Is it already possible, planned or any other way to achieve this?

@cmckni3
Copy link
Collaborator

cmckni3 commented Jan 31, 2024

Currently, not possible. Labeled as an enhancement request.

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

2 participants