Comments (1)
Temporary solution
// Table Columns
const columns = useMemo(
() => [
{
header: 'New',
accessorKey: 'new',
enableEditing: (row) => row.original.name === 'test' ? true : false
}
],
[]
);
..........
...............
// Inside Material React Table component you can use
..........
...............
muiTableBodyCellProps={({ row, cell }) => {
const _enableEditing = cell?.column?.columnDef?.enableEditing;
const enableEditing = typeof _enableEditing === 'function' ? _enableEditing(row) : _enableEditing;
// ---> Here you can use the enableEditing variable to conditionally check the edit state
}
..........
...............
from material-react-table.
Related Issues (20)
- When the options for filterSelectOptions are variables the component don't rerender HOT 1
- Can't sort the column with type of property is number in manualSorting=true HOT 1
- [Table] Column with id 'undefined' does not exist HOT 1
- Error: MUI: Unsupported `...` color. HOT 1
- Multiple api calls on column filter change in manual mode while using UseEffect hook HOT 1
- CORS Issues with Documentation Example HOT 1
- using MRT and mui/material <TextField in a component make <TextField typing slow and lag. HOT 1
- Error with accessorFn on nested props with v2.12.0 onwards
- React Material Table v2-> columnVisibility attribute accepts wrong type in initialState
- Scroll Position Jumps when scroll stops and row gets hovered HOT 5
- Row selection callback called multiple times when using grouping
- 2 elements in DOM with non unique id #mrt-rows-per-page
- Show/Hide Columns popup menu not keyboard accessible
- Inline edit demo lags when `onBlur` is triggered
- Do not trim header when column width is too small HOT 2
- Row ordering with row virtualization HOT 2
- onSortingChange getting called twice on first render (reopened)
- The sx property in the muiTableHeadCellsProps in the column definitions overwrites the same property in the table instance HOT 1
- Text Field: Characters Duplicated on Enter When Confirming Composition HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-react-table.