Note that there are some explanatory texts on larger screens.

plurals
  1. PONestedList in container not showing anything with sencha touch 2.2.1
    text
    copied!<p>Below is my model,just a config of fields:</p> <pre><code> Ext.define('Zjsy.model.TasksToDoModel', { extend : 'Ext.data.Model', xtype : 'TasksToDoModel', config : { fields : ['text'] } }); </code></pre> <p>Below is my store,i create data first and make it inline data of the store which i will choose proxy instead:</p> <pre><code> var data = { text: 'Groceries', items: [{ text: 'Drinks', items: [{ text: 'Water', items: [{ text: 'Sparkling', leaf: true }, { text: 'Still', leaf: true }] }, { text: 'Coffee', leaf: true }, { text: 'Espresso', leaf: true }, { text: 'Redbull', leaf: true }, { text: 'Coke', leaf: true }, { text: 'Diet Coke', leaf: true }] }, { text: 'Fruit', items: [{ text: 'Bananas', leaf: true }, { text: 'Lemon', leaf: true }] }, { text: 'Snacks', items: [{ text: 'Nuts', leaf: true }, { text: 'Pretzels', leaf: true }, { text: 'Wasabi Peas', leaf: true }] }] }; Ext.define('Zjsy.store.TasksToDoStore', { extend : 'Ext.data.Store', xtype : 'TasksTodoStore', requires : ['Zjsy.model.TasksToDoModel'], config : { model : 'Zjsy.model.TasksToDoModel', data : data } }); </code></pre> <p>Below is my view,i create it by extending from container:</p> <pre><code>Ext.define('Zjsy.view.TasksToDoPanel', { extend : 'Ext.Container', id : 'tasksToDoPanel', requires: [ 'Ext.dataview.*', 'Zjsy.store.TasksToDoStore', 'Ext.data.Store' ], config : { xtype : 'panel', layout : 'vbox', style : 'background:rgb(218,236,245)', items : [ { xtype:'Ext.dataview.NestedList', store : 'Zjsy.store.TasksToDoStore', displayField: 'text', flex: 1, style : 'border:1px solid red;' }//nested list ] }//config }); </code></pre> <p>When i look up in the chrome logs,it saying "<code>Uncaught Error: [Ext.createByAlias] Cannot create an instance of unrecognized alias: widget.Ext.dataview.NestedList sencha-touch-all-debug.js:6630</code>"</p> <p>Can anybody help me ?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload