Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

FlexibleTableRow API

DanilAndreev edited this page Jul 28, 2020 · 3 revisions

FlexibleTableCell API

The API documentation of the FlexibleTableRow React component. Learn more about the props and the CSS customization points.

Import

import {FlexibleTableRow} from "@danilandreev/mui-table-flexible";
// or
import FlexibleTableRow from "@danilandreev/mui-table-flexible/dist/moleculas/FlexibleTableRow";

You can learn more about the difference by reading this guide.

Props

Name Type Default Description
name string the name of the columns, used as key.
defaultWidth number the initial width of cell
disableOverflowHidden boolean if true, cell will not have overflow: hidden style.
children node The content of element
button boolean false if true, row will be clickable.
onClick function callback, called on click event.
onDoubleClick function callback, called on double click event.
width number width of the cell, if you want control it by yourself.
onResize function function, called when cell resizes. If not defined - FlexibleTable will provide this information.

The ref is forwarded to the root element.

Any other props supplied will be provided to the root element (native element).

CSS

Rule name Description
root Styles applied to the root element.
button Styles applied to the root element when button prop is true.

You can override the style of the component thanks to one of these customization points:

If that's not sufficient, you can check the implementation of the component for more detail.

Demos