PDA

View Full Version : Ext.form.TextArea: how to disable spellcheck?



smalafeev
30 Jan 2014, 3:25 AM
Tried to disable spellcheck in TextArea but no luck:


Ext.create('Ext.form.TextArea', {
id: 'output',
xtype: 'textarea',
autoCreate (http://dev.sencha.com/playpen/docs/output/Ext.form.TextArea.html#config-autoCreate): {
spellcheck: false
}

});


Is it possible?

Gary Schlosberg
30 Jan 2014, 6:31 AM
Have a look at inputAttrTpl (http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.form.field.Base-cfg-inputAttrTpl). Setting it to 'spellcheck="false"' seems to work:
https://fiddle.sencha.com/#fiddle/33m