How to use react-object-table - 1 common examples

To help you get started, we’ve selected a few react-object-table examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github uptick / react-object-table / customisation-demo.jsx View on Github external
};

function validate_age(value, props) {
  var intAge = parseInt(value);
  if (isNaN(intAge)) {
    return {valid: false,};
  }
  if (intAge < 0 || intAge > 125) {
    return {valid: false,};
  }
  return {
    valid: true,
    cleanedValue: intAge,
  };
}
class AgeEditor extends TextEditor.component {
  validate(value) {
    return validate_age(value, this.props);
  }
}
AgeEditor = {
  className: 'age-editor',
  component: AgeEditor,
  validate: validate_age,
};

class CustomisedTable extends React.Component {
  constructor(props) {
    super(props);

    this.state = {
      ...this.state,

react-object-table

React powered table of objects, designed to be editable and fast.

MIT
Latest version published 3 years ago

Package Health Score

46 / 100
Full package analysis

Popular react-object-table functions