UNPKG

solrkit

Version:

![Build Status](https://travis-ci.org/garysieling/solrkit.svg?branch=master) ![Dependencies](https://david-dm.org/garysieling/solrkit/status.svg)

31 lines 1.38 kB
"use strict"; 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