I have an app that retrieves some data from a site by ajax. It's working on JS ext4 but I can't resolve this in JS ext5.
I tryed this in ext5 and I'm receving "Cannot read propoerty 'on' of null
Sorry, I'm lost in this migration.
I can't find what is similar to list in JS Ext 4
In ext4 the view is:
Code:
Ext.define('myApp.view.Memos', { extend: 'Ext.List',
config : {
id : 'memosList',
store : 'memosStore',
disableSelection : true,
itemTpl : '<div class="memo_linha"><div class="memos_data">{data}</div><div class="memos_texto">{texto}</div></div>'
}...
I tryed this in ext5 and I'm receving "Cannot read propoerty 'on' of null
Code:
Ext.define('myApp.view.memos.Memos', {
extend: 'Ext.panel.Panel',
plugins: 'viewport',
xtype: 'memos',
requires: [
'Ext.ListView',
'myApp.store.Memos',
],
items : [
{
xtype: 'dataview',
tpl: [
'<tpl for=".">',
'<div class="memo_linha"><div class="memos_data">{data}</div><div class="memos_texto">{texto}</div></div>',
'</tpl>',
],
itemSelector: 'div.memo_linha',
store: 'memosStore'
}
Sorry, I'm lost in this migration.
Tks
I can't find what is similar to list in JS Ext 4
Aucun commentaire:
Enregistrer un commentaire