Sencha Extjs 值不具有约束力

Sencha Extjs Value not binding

我正在使用 Sencha ExtJS.I 想在一个 div 中获取所有值而不是 multiple.I 尝试了一个代码

` window.setInterval(function () {
                me.updateData({
                    Name: "aaa, aaa",
                    Id: "1234",
                    Vitals: [{
                        Name: "value1",
                        Timestamp: new Date(),
                        Value: getRandomInt(60, 80) + "/" + getRandomInt(60, 80)
                    }, {
                        Name: "value2",
                        Timestamp: new Date(),
                        Value: getRandomInt(60, 80)
                    }, {
                        Name: "value3",
                        Timestamp: new Date(),
                        Value: getRandomInt(60, 80)
                    }, {
                        Name: "value4",
                        Timestamp: new Date(),
                        Value: getRandomInt(60, 80)
                    }
                    ]
                });              
            }, 1000);


        items: [            
        {
            itemId: 'value_sys'   
        },
        {               
            items: [
            {                    
                itemId: 'value1'                   

                , tpl: '<div>{Value}</div>'   //value1 value here
            },{
                itemId: 'value2',
                tpl: '<div>{Value}</div>'    //value2 value here
            }, 
            {
                itemId: 'value3',
                tpl: '<div>{Value}}</div>'   //value3 value here
            }, 
            {
                itemId: 'value4',
                tpl: '<div>{Value}</div>'    //value4 value here
            }
            ]}
            ]`

以上代码工作正常,但我需要更改现有行为以在单个 div 中获取所有值,例如

items: [            
        {
            itemId: 'value_sys'   
        },
        {               
            items: [
            {                    
                itemId: 'value1,value2,value3,value4'                   

                , tpl: '<div>{Value}</div>'   //value1,value2,value3,value4 value here
            }
            ]}

这是正确的吗? 谁能帮我指出正确的方向?任何教程或博客 post 都会很有帮助

谢谢

你可以在这里使用for循环:

'<div>',
    '<tpl for="Vitals">',
        '<tpl>{Value} </tpl>',
    '</tpl>',
'</div>'

工作示例https://fiddle.sencha.com/#fiddle/1rt4