OctoPrint-WebcamTab/octoprint_webcamtab/static/js/webcamtab.js

29 lines
761 B
JavaScript
Raw Normal View History

2017-08-18 12:17:26 +02:00
/*
* View model for OctoPrint-WebcamTab
*
* Author: Sven Lohrmann
* License: AGPLv3
*/
$(function() {
function WebcamTabViewModel(parameters) {
var self = this;
// assign the injected parameters, e.g.:
// self.loginStateViewModel = parameters[0];
// self.settingsViewModel = parameters[1];
// TODO: Implement your plugin's view model here.
}
// view model class, parameters for constructor, container to bind to
OCTOPRINT_VIEWMODELS.push([
WebcamTabViewModel,
// e.g. loginStateViewModel, settingsViewModel, ...
[ /* "loginStateViewModel", "settingsViewModel" */ ],
// e.g. #settings_plugin_webcamtab, #tab_plugin_webcamtab, ...
[ /* ... */ ]
]);
});