1
0
Fork 0
fgdata/webgui/topics/Simulator.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

35 lines
1,012 B
JavaScript

define([
'knockout', 'text!./Simulator.html', './SubtopicViewmodel'
], function(ko, htmlString, SubtopicViewmodel) {
ko.components.register('Simulator/Screenshot', {
require : 'topics/Simulator/Screenshot'
});
ko.components.register('Simulator/Properties', {
require : 'topics/Simulator/Properties'
});
ko.components.register('Simulator/Config', {
require : 'topics/Simulator/Config'
});
ko.components.register('Simulator/Reset', {
require : 'topics/Simulator/Reset'
});
ko.components.register('Simulator/Exit', {
require : 'topics/Simulator/Exit'
});
// Return component definition
return {
viewModel : {
createViewModel : function(params, componentInfo) {
return new SubtopicViewmodel([
'Screenshot', 'Properties', 'Config', 'Reset', 'Exit'
], "Simulator", params);
},
},
template : htmlString
};
});