Commit 269fda4b authored by Frank Bergmann's avatar Frank Bergmann

- Sencha Touch TS:

  working according to demo
parent eb726c2c
...@@ -17,6 +17,7 @@ Ext.define('PO.controller.UserNavigationController', { ...@@ -17,6 +17,7 @@ Ext.define('PO.controller.UserNavigationController', {
var view = this.getUserNavigationView(); var view = this.getUserNavigationView();
view.push({ view.push({
xtype: 'userDetail', xtype: 'userDetail',
title: record.fullName(),
data: record.data data: record.data
}); });
} }
......
...@@ -26,6 +26,12 @@ Ext.define('PO.model.User', { ...@@ -26,6 +26,12 @@ Ext.define('PO.model.User', {
type: 'json' // Allow Sencha to write ticket changes type: 'json' // Allow Sencha to write ticket changes
} }
} }
},
fullName: function() {
var d = this.data;
return d.first_names + ' ' + d.last_name;
} }
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment