Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sencha touch Sencha Touch:一级嵌套列表?_Sencha Touch_Nested Lists - Fatal编程技术网

Sencha touch Sencha Touch:一级嵌套列表?

Sencha touch Sencha Touch:一级嵌套列表?,sencha-touch,nested-lists,Sencha Touch,Nested Lists,我想知道是否可以在嵌套列表的第一级显示子叶 在旁边的示例中,我想在您选择“我的类别”(最后一项)时显示一个页面,但是如果我使用getDetailCard函数,我会遇到一个父问题。信息是: “'undefined'不是对象(正在计算'parent.attributes.record.data')” 资料 模型和存储: Ext.regModel('ListItem', { fields: [ {name: 'text', type: 'string'}, {name: 'info', type:

我想知道是否可以在嵌套列表的第一级显示子叶

在旁边的示例中,我想在您选择“我的类别”(最后一项)时显示一个页面,但是如果我使用getDetailCard函数,我会遇到一个父问题。信息是:

“'undefined'不是对象(正在计算'parent.attributes.record.data')”

资料

模型和存储:

Ext.regModel('ListItem', {
fields: [

{name: 'text', type: 'string'},
{name: 'info', type: 'string'}

]
});

var store = new Ext.data.TreeStore({
model: 'ListItem',
root: data,
proxy: {
    type: 'ajax',
    reader: {
        type: 'tree',
        root: 'items'
    }
}
});

感谢您的帮助,尊敬。

叶子“我想在子叶子上显示的文本”没有父元素(实际上它的“父元素”是树的根元素)

Ext.regModel('ListItem', {
fields: [

{name: 'text', type: 'string'},
{name: 'info', type: 'string'}

]
});

var store = new Ext.data.TreeStore({
model: 'ListItem',
root: data,
proxy: {
    type: 'ajax',
    reader: {
        type: 'tree',
        root: 'items'
    }
}
});