solrkit
Version:
 
37 lines • 1.65 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 _ = require("lodash");
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 = _.get(this.props, 'style', {});
if (this.props.height) {
style = _.extend({
height: height + 'px',
float: 'left'
}, style);
}
var thisColumnClass = (this.props.columnWidth || 'sixteen') + ' wide column';
return (React.createElement("div", { className: "ui grid" }, (docs || []).map(function (doc, i) {
return React.createElement("div", { className: thisColumnClass, key: i, style: style }, render(doc, i));
})));
};
return ResultsList;
}(React.Component));
exports.ResultsList = ResultsList;
//# sourceMappingURL=ResultsList.js.map