ajsfw
Version:
Ajs Framework
36 lines (35 loc) • 1.93 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var Tsx_1 = require("ajsfw/dbg/lib/tsx/Tsx");
var LoggerToolbar = (function () {
function LoggerToolbar(log) {
this._log = log;
}
LoggerToolbar.prototype._refreshClick = function (e) {
this._log.refresh();
};
LoggerToolbar.prototype._setBreakpointClick = function (e) {
this._log.setBreakpoint();
};
LoggerToolbar.prototype._resetBreakpointClick = function (e) {
this._log.resetBreakpoint();
};
LoggerToolbar.prototype._clearBreakpointsClick = function (e) {
this._log.clearBreakpoints();
};
LoggerToolbar.prototype.enableBreakpoints = function () {
this._element.ownerDocument.getElementById("asjLogToolbarSetBkp").removeAttribute("disabled");
this._element.ownerDocument.getElementById("asjLogToolbarResetBkp").removeAttribute("disabled");
};
LoggerToolbar.prototype.render = function () {
var _this = this;
this._element = (Tsx_1.AjsDebugTsxFactory.createElement("div", null,
Tsx_1.AjsDebugTsxFactory.createElement("input", { type: "button", value: "Refresh", click: function (e) { _this._refreshClick(e); } }),
Tsx_1.AjsDebugTsxFactory.createElement("input", { type: "button", value: "Set Bkp", click: function (e) { _this._setBreakpointClick(e); }, disabled: "true", id: "asjLogToolbarSetBkp" }),
Tsx_1.AjsDebugTsxFactory.createElement("input", { type: "button", value: "Res Bkp", click: function (e) { _this._resetBreakpointClick(e); }, disabled: "true", id: "asjLogToolbarResetBkp" }),
Tsx_1.AjsDebugTsxFactory.createElement("input", { type: "button", value: "Clr Bkps", click: function (e) { _this._clearBreakpointsClick(e); } })));
return this._element;
};
return LoggerToolbar;
}());
exports.LoggerToolbar = LoggerToolbar;