How to use the material-table.default function in material-table

To help you get started, we’ve selected a few material-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 chgibb / PHAT / src / req / renderer / components / table.tsx View on Github external
import * as React from "react";

import {tableCell} from "../../renderer/styles/tableCell";

import {tableIcons} from "./tableIcons";

export const MuiTable : typeof import("material-table").default = require("material-table").default;

type Row = T & {
    tableData : {
        id : number
    }
};

type TableColumn = Omit & {
    render? : (row : Row) => string | number | boolean | JSX.Element;
    searchable : boolean;
    field : keyof T | "";
    hidden : boolean;
};

export interface TableProps
{

material-table

Datatable for React based on https://material-ui.com/api/table/ with additional features

MIT
Latest version published 4 months ago

Package Health Score

75 / 100
Full package analysis

Popular material-table functions