var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
/************************************************
Sample Gadget
************************************************/
var Dashboards;
(function (Dashboards) {
    var Models;
    (function (Models) {
        var SampleGadget = (function (_super) {
            __extends(SampleGadget, _super);
            function SampleGadget(gadgetOptions) {
                gadgetOptions.renderer = new Dashboards.Views.SampleRender();
                _super.call(this, gadgetOptions);
            }
            SampleGadget.CreateInstance = function (gadgetOptions) {
                var instance = new SampleGadget(gadgetOptions);
                return instance;
            };
            SampleGadget.TypeId = "GADGET TYPE GUID HERE - USE LOWERCASE";
            return SampleGadget;
        }(Models.Gadget));
        Models.SampleGadget = SampleGadget;
    })(Models = Dashboards.Models || (Dashboards.Models = {}));
})(Dashboards || (Dashboards = {}));
var Dashboards;
(function (Dashboards) {
    var Views;
    (function (Views) {
        var SampleRender = (function (_super) {
            __extends(SampleRender, _super);
            function SampleRender() {
                _super.call(this);
            }
            /* Renderer Overrides
            ******************************************************************************/
            SampleRender.prototype.updateGadget = function (handler) {
                // Do your thing!
            };
            return SampleRender;
        }(Views.Gadget));
        Views.SampleRender = SampleRender;
    })(Views = Dashboards.Views || (Dashboards.Views = {}));
})(Dashboards || (Dashboards = {}));
// Register the gadget type
Dashboards.Controllers.GadgetType.RegisterDefinition({
    typeId: Dashboards.Models.SampleGadget.TypeId,
    create: Dashboards.Models.SampleGadget.CreateInstance,
    resourceSet: 'Gadgets'
});
//# sourceMappingURL=_GadgetTemplate.js.map