Created
August 17, 2015 17:42
-
-
Save odoe/3b4664019d6d757d95e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="../../../dojo.d.ts"/> | |
/// <reference path="../../../arcgis-js-api.d.ts"/> | |
/// <amd-dependency path="dojo/_base/declare" name="dojoDeclare"/> | |
/// <amd-dependency path="dijit/_WidgetBase" name="_WidgetBase"/> | |
/// <amd-dependency path="dijit/_TemplatedMixin" name="_TemplatedMixin"/> | |
/// <amd-dependency path="dbind/bind" name="bind"/> | |
/// <amd-dependency path="dojo/text!./templates/LocatorView.html" name="templateString"/> | |
declare var dojoDeclare: dojo._base.declare; | |
declare var _WidgetBase: dijit._WidgetBase; | |
declare var _TemplatedMixin: dijit._TemplatedMixin; | |
declare var templateString: string; | |
declare var bind: any; | |
import * as store from 'app/stores/LocatorStore'; | |
import * as format from 'app/helpers/NumFormatter'; | |
let fixed: Function = format(3); | |
var LocatorView = dojoDeclare([_WidgetBase, _TemplatedMixin], { | |
templateString, | |
postCreate() { | |
var xStore = bind(fixed).to(store, 'x'); | |
var yStore = bind(fixed).to(store, 'y'); | |
bind(this.yNode).to(yStore); | |
bind(this.xNode).to(xStore); | |
} | |
}); | |
export default LocatorView; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment