-
-
Save davewilton/3f2cba55648286695d82f338227a0a54 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="../../../../tsd.d.ts" /> | |
/// <amd-dependency path="dijit/_WidgetBase"" name="WidgetBase"> | |
/// <amd-dependency path="dijit/_TemplatedMixin"" name="TemplatedMixin"> | |
/// <amd-dependency path="dijit/_WidgetsInTemplateMixin"" name="WidgetsInTemplateMixin"> | |
/// <amd-dependency path="dojo/text!./app.html" name="template" /> | |
/// <amd-dependency path="dojo/i18n!./nls/strings" name="nls" /> | |
declare var WidgetBase: any; | |
declare var TemplatedMixin: any; | |
declare var WidgetsInTemplateMixin: any; | |
declare var template: any; | |
declare var nls: any; | |
import dojoDeclare = require("dojo/_base/declare"); | |
import TabContainer = require("dijit/layout/TabContainer"); | |
import ContentPane = require("dijit/layout/ContentPane"); | |
interface eclLoggingApp { | |
constructor(options, domNode: string); | |
postCreate(); | |
startup(); | |
} | |
var myWidget = dojoDeclare<eclLoggingApp>([WidgetBase, TemplatedMixin, WidgetsInTemplateMixin], { | |
templateString: template, | |
nls: nls, | |
constructor(options, domNode: string) { | |
}, | |
postCreate(args) { | |
//Not allowed in option strict this.inherited(arguments); | |
WidgetBase.prototype.postCreate.call(this, args); | |
}, | |
startup(args) { | |
//Not allowed in option strict this.inherited(arguments); | |
WidgetsInTemplateMixin.prototype.startup.call(this, args); | |
} | |
}) | |
export = myWidget; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment