OctoPrint-Qrcodespoolswitcher/octoprint_QRCodeSpoolSwitcher/static/js/QRCodeSpoolSwitcher.js
2024-05-16 20:57:33 +02:00

30 lines
1.1 KiB
JavaScript

/*
* View model for OctoPrint-Qrcodespoolswitcher
*
* Author: Magnus Walbeck
* License: AGPLv3
*/
$(function() {
function QrcodespoolswitcherViewModel(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
* Please see http://docs.octoprint.org/en/master/plugins/viewmodels.html#registering-custom-viewmodels for more details
* and a full list of the available options.
*/
OCTOPRINT_VIEWMODELS.push({
construct: QrcodespoolswitcherViewModel,
// ViewModels your plugin depends on, e.g. loginStateViewModel, settingsViewModel, ...
dependencies: [ /* "loginStateViewModel", "settingsViewModel" */ ],
// Elements to bind to, e.g. #settings_plugin_QRCodeSpoolSwitcher, #tab_plugin_QRCodeSpoolSwitcher, ...
elements: [ /* ... */ ]
});
});