1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- import knockout from "../../ThirdParty/knockout.js";
- import createCommand from "../createCommand.js";
- function NavigationHelpButtonViewModel() {
-
- this.showInstructions = false;
- const that = this;
- this._command = createCommand(function () {
- that.showInstructions = !that.showInstructions;
- });
- this._showClick = createCommand(function () {
- that._touch = false;
- });
- this._showTouch = createCommand(function () {
- that._touch = true;
- });
- this._touch = false;
-
- this.tooltip = "Navigation Instructions";
- knockout.track(this, ["tooltip", "showInstructions", "_touch"]);
- }
- Object.defineProperties(NavigationHelpButtonViewModel.prototype, {
-
- command: {
- get: function () {
- return this._command;
- },
- },
-
- showClick: {
- get: function () {
- return this._showClick;
- },
- },
-
- showTouch: {
- get: function () {
- return this._showTouch;
- },
- },
- });
- export default NavigationHelpButtonViewModel;
|