1
0
Fork 0
fgdata/Phi/topics/Tools.js
Roman Ludwicki 156691bf87 Add content to the Help page for Phi
Handling unsupported buttons by add the text "not implemented yet".
2022-11-10 14:36:24 +01:00

32 lines
938 B
JavaScript

define([
'knockout', 'text!./Tools.html', './SubtopicViewmodel'
], function(ko, htmlString, SubtopicViewmodel) {
ko.components.register('Tools/Holding Pattern', {
require : 'topics/Tools/Holding'
});
ko.components.register('Tools/Wind Calculator', {
require : 'topics/Tools/WindCalculator'
});
ko.components.register('Tools/Vertical Navigation', {
require : 'topics/Tools/VerticalNavigation'
});
ko.components.register('Tools/Stopwatch', {
require : 'topics/Tools/Stopwatch'
});
// Return component definition
return {
viewModel : {
createViewModel : function(params, componentInfo) {
return new SubtopicViewmodel([
'Holding Pattern', 'Wind Calculator', 'Vertical Navigation', 'Stopwatch'
], "Tools", params);
},
},
template : htmlString
};
});