2015-01-25 12:02:20 +00:00
|
|
|
define([
|
2015-03-04 11:16:17 +00:00
|
|
|
'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'
|
|
|
|
});
|
|
|
|
|
2015-03-02 14:48:09 +00:00
|
|
|
ko.components.register('Aircraft/Panel', {
|
|
|
|
require : 'topics/Aircraft/Panel'
|
|
|
|
});
|
|
|
|
|
2015-01-25 12:02:20 +00:00
|
|
|
// Return component definition
|
|
|
|
return {
|
2015-03-04 11:16:17 +00:00
|
|
|
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
|
|
|
|
};
|
|
|
|
});
|