1
0
Fork 0
fgdata/Phi/topics/Environment.js
Torsten Dreyer 304992be59 Phi: initial commit for experimental weather dialog
new manual weather configuration based on a
http://en.wikipedia.org/wiki/St%C3%BCve_diagram Stuve (Stüve) Diagram.
work in progress, up to now it's just displaying current weather, edits
are not yet written to fg.
2015-04-18 13:10:48 +02:00

27 lines
812 B
JavaScript

define([
'knockout', 'text!./Environment.html', './SubtopicViewmodel'
], function(ko, htmlString, SubtopicViewmodel) {
ko.components.register('Environment/Date & Time', {
require : 'topics/Environment/DateTime'
});
ko.components.register('Environment/Weather', {
require : 'topics/Environment/Weather2'
});
ko.components.register('Environment/Position', {
require : 'topics/Environment/Position'
});
// Return component definition
return {
viewModel : {
createViewModel : function(params, componentInfo) {
return new SubtopicViewmodel([
'Date & Time', 'Weather', 'Position',
], "Environment", params);
},
},
template : htmlString
};
});