UI: superscript and subscript in nativescript


#1

Is it possible to display the text like this ‘22℃’ in NS ?? or any alternative is there ??


#2

Hi @sagar1911
You can directly keep the degree symbol ( ° ) on the label, and it should render fine.

If you want to bind the number to something, then you can do something like
<Label text="{{ degree + ‘°C’ }} /> (NS Core), Ng code should also look similar to this in terms of what you bind to.

I have tested this, and it is working fine :slight_smile: