I\'m creating a formpanel with items created via xtype (not calling new for each items). I\'d like to add a precision at the right of the TextField.
I managed to do
I'm not aware of a property that'll do what you want with a panel on the right. If it's something you're doing more than once, though, consider making your own type for it:
Ext.ns('Ext.ux.form');
Ext.ux.form.DurationField = Ext.extend(Ext.form.CompositeField, {
constructor: function(cfg) {
cfg = Ext.applyIf(cfg || {}, {
items: [ /** blah blah */ ]
});
Ext.ux.form.DurationField.superclass.constructor.call(this, cfg);
}
});
Ext.reg('durationfield', Ext.ux.form.DurationField);
That will let you use durationfield
as though it were a first class citizen.