Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"use strict";
var FakeObjectDataListStore = require('../../examples/helpers/FakeObjectDataListStore');
var FixedDataTable = require('fixed-data-table-2');
var React = require('react');
var Constants = require('../Constants');
var Table = FixedDataTable.Table;
var Column = FixedDataTable.Column;
var Cell = FixedDataTable.Cell;
// Require common FixedDataTable CSS.
require('fixed-data-table-2/css/layout/ScrollbarLayout.css');
require('fixed-data-table-2/css/layout/fixedDataTableLayout.css');
require('fixed-data-table-2/css/layout/fixedDataTableCellLayout.css');
require('fixed-data-table-2/css/layout/fixedDataTableCellGroupLayout.css');
require('fixed-data-table-2/css/layout/fixedDataTableColumnResizerLineLayout.css');
require('fixed-data-table-2/css/layout/fixedDataTableRowLayout.css');
require('fixed-data-table-2/css/style/fixedDataTable.css');
require('fixed-data-table-2/css/style/fixedDataTableCell.css');
require('fixed-data-table-2/css/style/fixedDataTableColumnResizerLine.css');
require('fixed-data-table-2/css/style/fixedDataTableRow.css');
require('fixed-data-table-2/css/style/Scrollbar.css');
/**
* Copyright Schrodinger, LLC
*/
"use strict";
var ExampleImage = require('../helpers/ExampleImage');
var FakeObjectDataListStore = require('../helpers/FakeObjectDataListStore');
var FixedDataTable = require('fixed-data-table-2');
var React = require('react');
var Column = FixedDataTable.Column;
var Table = FixedDataTable.Table;
var ROWS = 1000000;
function renderImage(/*string*/ cellData) {
return ;
}
var FilterExample = React.createClass({
getInitialState() {
return {
rows : new FakeObjectDataListStore().getAll(),
filteredRows: null,
filterBy: null
};
},
/**
* Copyright Schrodinger, LLC
*/
"use strict";
var ExampleImage = require('../helpers/ExampleImage');
var FakeObjectDataListStore = require('../helpers/FakeObjectDataListStore');
var FixedDataTable = require('fixed-data-table-2');
var React = require('react');
var Column = FixedDataTable.Column;
var PropTypes = React.PropTypes;
var Table = FixedDataTable.Table;
var ROWS = 1000000;
function renderImage(/*string*/ cellData) {
return ;
}
function renderLink(/*string*/ cellData) {
return <a href="#">{cellData}</a>;
}
function renderDate(/*object*/ cellData) {
return <span>{cellData.toLocaleString()}</span>;
}
var ObjectDataExample = React.createClass({
_proto.render = function render() {
var _this$state = this.state,
gridWidth = _this$state.gridWidth,
gridHeight = _this$state.gridHeight;
return _react["default"].createElement("div", {
className: "oc-datagrid-main-container",
style: this.getStyle()
}, _react["default"].createElement(_fixedDataTable.Table, _extends({}, this.props, {
width: gridWidth,
height: gridHeight
})));
};