ExtJS How to modify the textfield parameter autocomplete="off"
You want to add an afterrender
listener to the textfield
, get a reference to the input
element, and set its autocomplete
attribute to "on". You probably also want to set its name
(as that is how the browser remembers the value).
Example:
http://jsfiddle.net/4TSDu/19/
{
xtype:'textfield',
fieldLabel:'some field',
name:'somefield',
listeners:{
afterrender:function(cmp){
cmp.inputEl.set({
autocomplete:'on'
});
}
}
}