1
0
Fork 0
fgdata/webgui/topics/Aircraft.js

36 lines
1,021 B
JavaScript
Raw Normal View History

2015-01-25 12:02:20 +00:00
define([
'knockout', 'text!./Aircraft.html', './SubtopicViewmodel'
], function(ko, htmlString, SubtopicViewmodel) {
2015-01-25 12:02:20 +00:00
ko.components.register('Aircraft/Select', {
require : 'topics/Aircraft/Select'
});
ko.components.register('Aircraft/Mass & Balance', {
require : 'topics/Aircraft/MassBalance'
});
ko.components.register('Aircraft/Checklists', {
require : 'topics/Aircraft/Checklists'
});
2015-02-06 10:36:53 +00:00
ko.components.register('Aircraft/Help', {
require : 'topics/Aircraft/Help'
});
ko.components.register('Aircraft/Panel', {
require : 'topics/Aircraft/Panel'
});
2015-01-25 12:02:20 +00:00
// Return component definition
return {
viewModel : {
createViewModel : function(params, componentInfo) {
return new SubtopicViewmodel([
'Help', 'Mass & Balance', 'Checklists', 'Failures', 'Panel', 'Select'
], "Aircraft", params);
},
},
2015-01-25 12:02:20 +00:00
template : htmlString
};
});