123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- define([
- '../../Core/defineProperties',
- '../../ThirdParty/knockout',
- '../createCommand'
- ], function(
- defineProperties,
- knockout,
- createCommand) {
- "use strict";
-
- var NavigationHelpButtonViewModel = function() {
-
- this.showInstructions = false;
- var 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']);
- };
- defineProperties(NavigationHelpButtonViewModel.prototype, {
-
- command : {
- get : function() {
- return this._command;
- }
- },
-
- showClick : {
- get : function() {
- return this._showClick;
- }
- },
-
- showTouch : {
- get: function() {
- return this._showTouch;
- }
- }
- });
- return NavigationHelpButtonViewModel;
- });
|