-
-
Save davewilton/352c6c9f93102cddf62e459be5be7b69 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
/// <amd-dependency path="dojo/text!./resources/templates/Demo9.html" name="template" /> | |
/// <amd-dependency path="dojo/i18n!widgets/Demo9Widget/Demo9/resources/nls/strings" name="nls" /> | |
/// <amd-dependency path="xstyle/css!./resources/css/Demo9.css" name="style" /> | |
declare var template: any; | |
declare var nls: any; | |
declare var style: any; | |
// dojo | |
import dojoDeclare = require("dojo/_base/declare"); | |
import lang = require("dojo/_base/lang"); | |
// dijit | |
import WidgetBase = require("dijit/_WidgetBase"); | |
import TemplatedMixin = require("dijit/_TemplatedMixin"); | |
import WidgetsInTemplateMixin = require("dijit/_WidgetsInTemplateMixin"); | |
// esri | |
import Map = require("esri/map"); | |
// local | |
import IConfig = require("./resources/IConfigDemo9"); | |
import declareDecorator = require("./resources/declareDecorator"); | |
@declareDecorator(WidgetBase, TemplatedMixin, WidgetsInTemplateMixin) | |
class Demo9 { | |
// description: test | |
baseClass: string = "demo9-widget"; | |
templateString: string = template; | |
nls: any = nls; | |
config: IConfig; | |
map: Map; | |
constructor(params: any, srcNodeRef: dojo.NodeOrString) { | |
// required for dojo inheritance to call the superclass | |
let self: any = this; | |
self.inherited(arguments); | |
} | |
startup(args?: any): void { | |
console.log(this.baseClass + "::startup", args); | |
// test the config file interface | |
console.log(this.config.serviceUrl); | |
// required for dojo inheritance to call the superclass | |
let self: any = this; | |
self.inherited(arguments); | |
} | |
} | |
export = Demo9; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment