I am trying to dynamically create a textbox that will allow a user to enter only currency data. Here is a snippet of what I tried with the util.Format:
What I was expecting was to see a textbox with $0.00 in it but it did not display that way - only 0.00. Did I use it correctly?
component = new Ext.form.field.Number(
allowDecimals: item.precision > 0,