How to use react-table-hoc-fixed-columns - 5 common examples

To help you get started, we’ve selected a few react-table-hoc-fixed-columns 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 sosy-lab / benchexec / benchexec / tablegenerator / react-table / src / components / ReactTable.js View on Github external
numericSortMethod,
  textSortMethod,
  determineColumnWidth,
  pathOr,
  emptyStateValue,
  isNil,
} from "../utils/utils";

const numericPattern = "([+-]?[0-9]*(\\.[0-9]*)?)(:[+-]?[0-9]*(\\.[0-9]*)?)?";

// Special markers we use as category for empty run results
const RUN_ABORTED = "aborted"; // result tag was present but empty (failure)
const RUN_EMPTY = "empty"; // result tag was not present in results XML
const SPECIAL_CATEGORIES = { [RUN_EMPTY]: "Empty rows", [RUN_ABORTED]: "—" };

const ReactTableFixedColumns = withFixedColumns(ReactTable);

export default function Table(props) {
  const [fixed, setFixed] = useState(true);
  let [filteredColumnValues, setFilteredColumnValues] = useState({});
  let [disableTaskText, setDisableTaskText] = useState(false);

  function FilterInputField(props) {
    const elementId = props.column.id + "_filter";
    const filter = props.filter ? props.filter.value : props.filter;
    let value;
    let typingTimer;

    const textPlaceHolder = disableTaskText
      ? "To edit, please clear task id filter in the sidebar"
      : "text";
github sosy-lab / benchexec / benchexec / tablegenerator / react-table / src / components / Summary.js View on Github external
//
// SPDX-License-Identifier: Apache-2.0

import React from "react";
import ReactTable from "react-table";
import "react-table/react-table.css";
import withFixedColumns from "react-table-hoc-fixed-columns";
import "react-table-hoc-fixed-columns/lib/styles.css";
import {
  createRunSetColumns,
  StandardColumnHeader,
  SelectColumnsButton,
} from "./TableComponents.js";
import { determineColumnWidth, isNumericColumn } from "../utils/utils";

const ReactTableFixedColumns = withFixedColumns(ReactTable);

export default class Summary extends React.Component {
  constructor(props) {
    super(props);

    this.state = {
      fixed: true,
    };
    this.infos = [
      "displayName",
      "tool",
      "limit",
      "host",
      "os",
      "system",
      "date",
github rhinogram / rhinostyle / src / scripts / components / SmartTable.jsx View on Github external
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import ReactTable from 'react-table';
import withFixedColumns from 'react-table-hoc-fixed-columns';

const ReactTableFixedColumns = withFixedColumns(ReactTable);
const SmartTable = (props) => {
  const { striped, highlight, sortable, sticky, ...opts } = props;
  const classes = cx('', {
    '-highlight': highlight,
    '-striped': striped,
    '-sorting': sortable,
    '-sticky': sticky,
  });
  return (
    
  );
};
SmartTable.propTypes = {
github nteract / nteract / packages / data-explorer / src / charts / grid.tsx View on Github external
import * as React from "react";
import ReactTable from "react-table";
import withFixedColumns from "react-table-hoc-fixed-columns";

import CustomReactTableStyles from "../css/";
import * as Dx from "../types";

import styled from "styled-components";

const ReactTableFixedColumns = withFixedColumns(ReactTable);

const switchMode = (currentMode: string) => {
  const nextMode: Dx.JSONObject = {
    "=": ">",
    ">": "<",
    "<": "="
  };
  return nextMode[currentMode];
};

type OnChangeProps = (input: number | string) => void;

type FilterIndexSignature = "integer" | "number" | "string";

interface NumberFilterProps {
  onChange: OnChangeProps;
github nteract / nteract / packages / data-explorer / src / charts / grid.tsx View on Github external
import * as React from "react";
import ReactTable from "react-table";
import withFixedColumns from "react-table-hoc-fixed-columns";

import CustomReactTableStyles from "../css/";
import * as Dx from "../types";

import styled from "styled-components";

const ReactTableFixedColumns = withFixedColumns(ReactTable);

const switchMode = (currentMode: string) => {
  const nextMode: Dx.JSONObject = {
    "=": ">",
    ">": "<",
    "<": "="
  };
  return nextMode[currentMode];
};

type OnChangeProps = (input: number | string) => void;

type FilterIndexSignature = "integer" | "number" | "string";

interface NumberFilterProps {
  onChange: OnChangeProps;

react-table-hoc-fixed-columns

ReactTable HOC for fixed columns

MIT
Latest version published 3 years ago

Package Health Score

50 / 100
Full package analysis

Popular react-table-hoc-fixed-columns functions

Similar packages