extjs4.1 - Display symbols/icons before and after textfield -


i have requirement display 1 symbol before textfield , @ end display .00, below code using not idea how so.

                                  xtype:"textfield",                                       fieldlabel: 'total anticipated mkt val',                                   labelstyle:'font-weight:bold;',                                   name:"totalanticipatedmarketvalue",                                   id: 'totalanticipatedmarketvalue',                                   style:{color:'#0a4374',fontsize:'10px',fontweight:'',textalign:'left'} 

you can use fieldcontainer, this:

{     xtype: 'fieldcontainer',     fieldlabel: 'total anticipated mkt val',     labelstyle:'font-weight:bold;',     layout: 'hbox',     items: [         {             xtype: 'displayfield',             value: '$'         },         {             xtype: 'numberfield',             name: "totalanticipatedmarketvalue",             flex: 1         },         {             xtype: 'displayfield',             value: '.00'         }     ] } 

see docs here: http://docs.sencha.com/extjs/4.2.1/#!/api/ext.form.fieldcontainer


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -