extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
30 lines (24 loc) • 870 B
JavaScript
Ext.define('Admin.profile.Phone', {
extend: 'Ext.app.Profile',
requires: [
'Admin.view.phone.*'
],
// Map phone profile views to generic xtype aliases:
//
views: {
email: 'Admin.view.phone.email.Email',
inbox: 'Admin.view.phone.email.Inbox',
compose: 'Admin.view.phone.email.Compose',
searchusers: 'Admin.view.phone.search.Users'
},
isActive: function () {
return Ext.platformTags.phone;
},
launch: function () {
// Add a class to the body el to identify the phone profile so we can
// override CSS styles easily. The framework adds x-phone so we could
// use it but this way the app controls a class that is always present
// when this profile isActive, regardless of the actual device type.
Ext.getBody().addCls('phone');
}
});