mirror of
https://github.com/fergalmoran/dss-mobile.git
synced 2025-12-22 09:50:53 +00:00
26 lines
602 B
JavaScript
26 lines
602 B
JavaScript
Ext.define('DssMobile.controller.MixController', {
|
|
extend: 'Ext.app.Controller',
|
|
|
|
config: {
|
|
refs: {
|
|
main: 'mainview'
|
|
},
|
|
control: {
|
|
list: {
|
|
disclose: 'onDisclose',
|
|
itemtap: 'showDetail'
|
|
}
|
|
}
|
|
},
|
|
onDisclose: function(list, record, target, index) {
|
|
return false;
|
|
},
|
|
showDetail: function (list, index, target, record) {
|
|
this.getMain().push({
|
|
xtype: 'mixdetailview',
|
|
title: record.data.title,
|
|
data: record.data
|
|
});
|
|
}
|
|
});
|