in web_tool/js/noty.js [850:887]
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.NotyButton = undefined;
var _utils = __webpack_require__(0);
var Utils = _interopRequireWildcard(_utils);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var NotyButton = exports.NotyButton = function NotyButton(html, classes, cb) {
var _this = this;
var attributes = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
_classCallCheck(this, NotyButton);
this.dom = document.createElement('button');
this.dom.innerHTML = html;
this.id = attributes.id = attributes.id || Utils.generateID('button');
this.cb = cb;
Object.keys(attributes).forEach(function (propertyName) {
_this.dom.setAttribute(propertyName, attributes[propertyName]);
});
Utils.addClass(this.dom, classes || 'noty_btn');
return this;
};
/***/ }),