Sencha Touch 1.0에서 개발 중. Ext.List를 사용하여 목록을 렌더링하고 있지만 각 목록 항목의 시작 부분을 확인란으로 시작하고 싶습니다. 또한 배열 항목 값, config 옵션에 주어진 배열을 기반으로 상태를 변경하려고합니다. Ext.form.Checkbox를 Ext.List에 추가하는 방법이 있습니까?Sencha Touch ExtJS 목록에 체크 박스 추가
내가 대신 <input type="checkbox".../>
에 <itemTpl>
설정 옵션을 사용하는 경우, 그것은 화면에 추한 외모와 둘째 나는 확인란 여기
에 이벤트를 수신하는 방법을 모른다 통해 UR 눈 사탕 코드입니다 :
Ext.regModel('Todos', {
fields: ['title', 'completed_at']
});
var groupingBase = {
itemTpl: '<div class="contact2"><strong>{title}</strong></div>',
selModel: {
mode: 'SINGLE',
allowDeselect: true
},
// grouped: true,
indexBar: true,
onItemDisclosure: {
scope: 'test',
handler: function (record, btn, index) {
alert('Disclose more info for ' + record.get('title'));
}
},
store: new Ext.data.Store({
model: 'Todos',
sorters: 'title',
getGroupString: function (record) {
return record.get('title')[0];
},
data: [todos] //todos array is prev populated with required items' properties
})
};
myList = new Ext.List(Ext.apply(groupingBase, {
fullscreen: true
}));
//List ends
tasksFormBase = {
title: 'Tasks',
iconCls: 'favorites',
cls: 'card2',
badgeText: '4',
layout: 'fit',
items: [
myList, {
xtype: 'checkboxfield',
name: 'cool',
label: 'Cool'
}],
dockedItems: [todosNavigationBar]
};
는 tasksFormBase는 다음 Ext.TabPanel의 설정 옵션
도움이 폼 내선 마스터에 추가됩니다 // ???
안녕 친구 당신은 내가 엽차 터치 2.0.It에서 같은 문제에 붙어로 엽차 터치 2.0 나에게 UR 전체 코드를 제공 할 수 있습니다 당신이 그렇게한다면 매우 도움이 될 것이고, 나는 그것을 높이 평가할 것입니다 .Thanx는 사전에. – himanshu
GitHub에서 공유하면 Touch 2.1.3을 사용하여 DataView에서 동일한 결과를 얻으려고하면 좋을 것입니다. –