I have a component in extjs store named date
How can i retrieve it ExtJS
try this :
var dateObj = Ext.ComponentQuery.query('[name=date]');
The name
property is normally used by fields and there is a much better way to fetch them as the ComponentQuery
. So if this is about fields I strongly recommend you to use findField()
instead of a ComponentQuery
. You can use it like
formInstance.getForm().findField('NameOrId');