EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Coder on September 04, 2019, 05:51:11 PM



Title: numberbox('suffix': HTMLsymbol) ?
Post by: Coder on September 04, 2019, 05:51:11 PM
In database Currency sign saved as HTMLsymbols ( € ₺ )
when I do
Code:
.numberspinner({'suffix': ' '+lCurrency.Sign}).numberspinner('setValue',100);
text in the input : 100  €
how can set suffix to show HTML code as  symbol?


second: how to align text in input to right side? <input align="right"> and <input data-options:"align: 'right'"> didnt work


Title: Re: numberbox('suffix': HTMLsymbol) ?
Post by: jarry on September 05, 2019, 01:38:16 AM
You can't set 'suffix' with html code, try this code instead.
Code:
<style type="text/css">
.numberbox .textbox-text{
text-align: right;
}
</style>
<input class="easyui-numberbox" value="1234567.89" data-options="precision:2,groupSeparator:',',decimalSeparator:' ', suffix:'€',width:200">