How can we use a variable value in tpl (of Ext.view.View) which is not coming from store?
How can we use a variable value in tpl (of Ext.view.View) which is not coming from store?
Ext.view.View needs a store to apply the data to the tpl.
Mitchell Simoens @LikelyMitch
Check out my GitHub:
https://github.com/mitchellsimoens
Posts are my own, not any current, past or future employer's.
I have used store also but the case is that some of the data come from store and some I want to provide from variable. For example, here I want to give src of img from a variable but I don't know how can I specify variable inside tpl?
Code:var a = Ext.create('Ext.view.View', { store: mystore, tpl: ['<tpl for=".">', '<div class="Thumb"> <img vspace="5" src="'+ imagepath+ '" title="{name}"><p>{image}</p></div>', '</tpl>', ], and so on…