solrkit
Version:
  UI Components for Solr, using TypeScript + React
38 lines • 1.75 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 * as _ from 'lodash';
import './App.css';
import { Histogram, HistogramProperties } from './component/facet/Histogram';
import { Pagination, PaginationProperties } from './component/Pagination';
import { sampleHistogramData } from './editor/SampleData';
import Properties from './editor/Properties';
var App = (function (_super) {
__extends(App, _super);
function App() {
var _this = _super.call(this) || this;
_this.onClick = _this.onClick.bind(_this);
return _this;
}
App.prototype.onClick = function (event) {
//
};
App.prototype.render = function () {
return (React.createElement("div", null,
React.createElement(Properties, { properties: PaginationProperties, name: "Pagination" },
React.createElement(Pagination, { numRows: 100, pageSize: 10 })),
React.createElement(Properties, { properties: HistogramProperties, name: "Histogram" },
React.createElement(Histogram, { data: sampleHistogramData, facetHandler: _.partial(this.onClick, 'facetHandler') }))));
};
return App;
}(React.Component));
export default App;
//# sourceMappingURL=App.js.map