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

36 lines
1,012 B
JavaScript
Raw Normal View History

2015-01-25 12:02:20 +00:00
define([
'knockout', 'text!./Simulator.html', './SubtopicViewmodel'
], function(ko, htmlString, SubtopicViewmodel) {
2015-03-04 08:40:25 +00:00
ko.components.register('Simulator/Screenshot', {
require : 'topics/Simulator/Screenshot'
});
2015-01-25 12:02:20 +00:00
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);
},
},
2015-01-25 12:02:20 +00:00
template : htmlString
};
});