cancel
Showing results for 
Search instead for 
Did you mean: 

How to add superscript text to button

0 Kudos

Hi All, How to add the superscript text to a button Set . E.g var superText = "x"; Var text = "Name" + superText.sup()   var chartElementBtn = new window.sap.m.Button({ type: window.sap.m.ButtonType.Transparent, }); chartElementBtn .setText(text); above code is not working. Can someone help me in resolving this. Thanks, Hemapriya

Accepted Solutions (1)

Accepted Solutions (1)

saivellanki
Active Contributor
0 Kudos

Hi Hemapriya,

How about extending Button control, since button 'text' property accepts only string: JS Bin - Collaborative JavaScript Debugging

Regards,

Sai Vellanki.

Answers (0)