1
0
Fork 0
fgdata/webgui/topics/Tools.js
Torsten Dreyer 4d94d42ff6 Phi: hash based single page navigation and Map tuning
with this patch, navigation with the browsers forward/backward buttons
is supported within topics and subtopics as well as deep linking into
topics using hashed urls like /gui/#Map or /gui/#Environment/Weather

Also, slightly rename map overlay layers
2015-03-04 12:16:17 +01:00

28 lines
827 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/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
};
});