Comments (6)
I'll work on this as time permits. It's functional so this is a low priority issue. This project needs a detailed list of props like the one at:
https://material-table.com/#/docs/all-props
That's comprehensive but the prop definitions could be improved.
from core.
Here's how those props work:
hidden
: When set, the column does not show in either the table or the columnsButton selector.
hiddenByColumnsButton
: This allows the column to show in the columnsButton selector, but it must be set in conjunction with thehidden
prop. This has no effect if set by itself.
This is not documented well and isn't intuitive. I propose that we change the behavior so that hiddenByColumnsButton
set by itself hides it in the table but shows it in the columnsButton selector. hidden
would remain the same and force the column to be removed everywhere (table and columnsButton selector).
Example of how it must be used today:
const allColumns = [
{
title: "My Column",
hidden: true,
hiddenByColumnsButton: true,
},
from core.
Let me know how I can help!
from core.
I created a PR to address this. See #24 for more details.
I suggest that we add the list of props to the main Readme. It's a hassle hunting for them on separate documentation pages. That will also free up the demo site to focus on examples.
from core.
@peacechen I agree. We need a better way to keep track of all props.
from core.
See here for more #24
from core.
Related Issues (20)
- onRowUpdateCancelled doesn't return any rowData information HOT 5
- Deselect all programatically HOT 2
- Update dependencies HOT 5
- Columns aren't sortable if they use `render` instead of `field` HOT 2
- Request for Feature Addition: Custom Styling for Actions Cell in Row Editing HOT 2
- Child row of a child row does not show "Are you sure you want to delete this row?" HOT 9
- Warning: MTableHeader: Support for defaultProps will be removed from function components in a future major release HOT 5
- Seems like MaterialTable is not compatible with ES Modules HOT 3
- date-fns V3 and material-table 6.4.1 throws parseISO error when a column has a type of "date"/"datetime" HOT 4
- Any possible way to toggle child row programmatically easily ? HOT 2
- Column sorting for fields that start with "current" breaks after data update HOT 1
- Column filtering is broken after update HOT 1
- Title: WCAG 4.1.2: Ensures every form element has a label (.PrivateSwitchBase-input-317[value=""][data-indeterminate="false"]) HOT 3
- column filtering is nolonger working in version "@material-table/core": "^6.4.3", HOT 3
- what's the purpose of imported { Column } from @material-table/core ?
- Build error from new version of dependecy Zustand HOT 1
- Warning `columns` is marked as required in `MTableAction`, but its value is `undefined` HOT 1
- Unexpected behavior with TotalCount and page properties HOT 1
- Save/Restore sorting with remote data
- Table is not refreshed with remote data HOT 2
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 core.