This repository has been archived by the owner on Nov 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
FlexibleTableRow API
DanilAndreev edited this page Jul 28, 2020
·
3 revisions
The API documentation of the FlexibleTableRow React component. Learn more about the props and the CSS customization points.
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.
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).
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:
- With a rule name of the classes object prop.
- With a global class name.
If that's not sufficient, you can check the implementation of the component for more detail.
- Demos
- Component API