solrkit
Version:
 
31 lines • 1.38 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var semantic_ui_react_1 = require("semantic-ui-react");
var ExcelExport = (function (_super) {
__extends(ExcelExport, _super);
function ExcelExport() {
var _this = _super.call(this) || this;
_this.onClick = _this.onClick.bind(_this);
return _this;
}
ExcelExport.prototype.onClick = function () {
this.props.core.doExport();
};
ExcelExport.prototype.render = function () {
return (React.createElement(semantic_ui_react_1.Popup, { trigger: React.createElement("i", { className: "cloud download icon", onClick: this.onClick }), content: "Export to Excel" }));
};
return ExcelExport;
}(React.Component));
exports.ExcelExport = ExcelExport;
//# sourceMappingURL=ExcelExport.js.map