UNPKG

solrkit

Version:

![Build Status](https://travis-ci.org/garysieling/solrkit.svg?branch=master) ![Dependencies](https://david-dm.org/garysieling/solrkit/status.svg) UI Components for Solr, using TypeScript + React

34 lines 1.38 kB
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'; var ResultsList = (function (_super) { __extends(ResultsList, _super); function ResultsList() { return _super !== null && _super.apply(this, arguments) || this; } ResultsList.prototype.render = function () { var _a = this.props, docs = _a.docs, render = _a.render, height = _a.height; var style = {}; if (this.props.height) { style = { height: height + 'px', float: 'left', padding: '5px' }; } return (React.createElement("div", null, (docs || []).map(function (doc, i) { return React.createElement("div", { key: i, style: style }, render(doc)); }))); }; return ResultsList; }(React.Component)); export { ResultsList }; //# sourceMappingURL=ResultsList.js.map