/* * View model for OctoPrint-Switcher * * Author: Moritz Münch * License: AGPLv3 */ $(function() { function SwitcherViewModel(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: SwitcherViewModel, // ViewModels your plugin depends on, e.g. loginStateViewModel, settingsViewModel, ... dependencies: [ /* "loginStateViewModel", "settingsViewModel" */ ], // Elements to bind to, e.g. #settings_plugin_switcher, #tab_plugin_switcher, ... elements: [ /* ... */ ] }); });