29 lines
761 B
JavaScript
29 lines
761 B
JavaScript
|
/*
|
||
|
* 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, ...
|
||
|
[ /* ... */ ]
|
||
|
]);
|
||
|
});
|