solrkit
Version:
  UI Components for Solr, using TypeScript + React
29 lines • 1.26 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 __());
};
})();
import * as React from 'react';
import { Popup } from '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(Popup, { trigger: React.createElement("i", { className: "cloud download icon", onClick: this.onClick }), content: "Export to Excel" }));
};
return ExcelExport;
}(React.Component));
export { ExcelExport };
//# sourceMappingURL=ExcelExport.js.map