2015-01-25 12:02:20 +00:00
|
|
|
define([
|
2015-03-04 11:16:17 +00:00
|
|
|
'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 {
|
2015-03-04 11:16:17 +00:00
|
|
|
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
|
|
|
|
};
|
|
|
|
});
|