mirror of
https://github.com/fergalmoran/dss-mobile.git
synced 2026-01-03 15:44:33 +00:00
Initial Commit
This commit is contained in:
25
app/controller/MixController.js
Normal file
25
app/controller/MixController.js
Normal file
@@ -0,0 +1,25 @@
|
||||
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
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user