July 2015
Beginner
452 pages
8h 34m
English
Now, that we have our data connection set, we are going to define the view of our application:
//Step 1 var myTpl = [ '<tplfor=".">', '<div class="user">{firstName} {lastName}</div>', '</tpl>' ].join(''); //Step 2 var myDataview = Ext.create('Ext.view.View', { store: myStore, //step 3 tpl: myTpl, //step 4 padding:6, emptyText: '<b>No users available</b>' });
In the previous code, we defined our user's DataView. So, let's see the code step by step:
var myTpl so that the DataView can use it.Ext.view.View class in the myDataview variable.step 3.tpl:myTpl property. ...Read now
Unlock full access