EasyUI Forum
May 06, 2024, 03:46:06 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: numberbox('suffix': HTMLsymbol) ?  (Read 2431 times)
Coder
Jr. Member
**
Posts: 96


View Profile
« 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
« Last Edit: September 04, 2019, 05:53:24 PM by Coder » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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">
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!