Inital commit
This commit is contained in:
28
octoprint_webcamtab/static/js/webcamtab.js
Normal file
28
octoprint_webcamtab/static/js/webcamtab.js
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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, ...
|
||||
[ /* ... */ ]
|
||||
]);
|
||||
});
|
Reference in New Issue
Block a user