UNPKG

@up-group/react-controls

Version:

We know that there are a ton of react UI library projects to choose from. Our hope with this one is to provide the next generation of react components that you can use to bootstrap your next project, or as a reference for building a UIKit. Read on to get

31 lines 1.4 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 UpDefaultCellFormatter_1 = require("./UpDefaultCellFormatter"); var UpDataGridCell = (function (_super) { __extends(UpDataGridCell, _super); function UpDataGridCell(props, context) { var _this = _super.call(this, props, context) || this; _this.state = { isSelected: false }; return _this; } UpDataGridCell.prototype.render = function () { return (React.createElement("td", { className: "up-data-grid-cell" }, React.createElement(UpDefaultCellFormatter_1.UpCellFormatter, { value: this.props.value, column: this.props.column }, this.props.children))); }; return UpDataGridCell; }(React.Component)); exports.default = UpDataGridCell; //# sourceMappingURL=UpDataGridCell.js.map