forum

Home / DeveloperSection / Forums / Sencha Touch 2.0 — How can I hide my list item?

Sencha Touch 2.0 — How can I hide my list item?

Anonymous User371231-May-2013
Hi Expert! 

Given a list and a segmentedButton in my panel's items:
[{
    xtype:'segmentedbutton',
    id:'segmented-btn',
    items: [{
        ui:'action',
        text: 'A',
        pressed: true
    },{
        ui:'action',
        text: 'B',
    }]
},{
    xtype: 'list',
    id: 'toList',
    scrollable: false,
    data: [],
    itemTpl: ['<div id="{title}-item">{title}</div>']
},{
    xtype: 'list',
    id: 'fromList',
    ui: 'round',
    data: [],
    itemTpl: ['<div id="{title}-item">{title}</div>']
}]

When the segmented button A is pressed, the 'To' list item will be hidden and when my segmented button B is pressed, the 'From' list item will be hidden and the 'To' list item will shown.

Thanks in advance! 

Updated on 01-Jun-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By