Comments (6)
You can change styles in column settings.
Try overflow: 'hidden'
or you can set a column's width also,
{
key: 'key',
label: 'label',
style: {
overflow: 'hidden',
width: 140,
},
}
from material-ui-datatables.
Tried it - works nicely! Thank you :)
👍
from material-ui-datatables.
It is possible NOW :) Please try 0.16.9
.
I've added 3 style props tableStyle, tableBodyStyle, tableWrapperStyle
and what it does is the same as style, bodyStyle, wrapperStyle
props in material-ui table component.
So, for example, if you change tableStyle like this,
<DataTables
...
tableStyle={{tableLayout: 'auto'}}
...
column size will be set by it's content size.
from material-ui-datatables.
Is there any way you can think of to have automatic column sizing (based on content), up to a maximum size?
from material-ui-datatables.
Hmm, I think if you don't set any width(include table tag), your columns size are set by the length of your contents as same as usual table tag. or you can change table-layout
property. but the problem is that there is no way to overwrite table and it's wrapper's style now. Let me add some props.
from material-ui-datatables.
Not sure I get you. Is it possible NOW? Or do you need to add more props for it?
from material-ui-datatables.
Related Issues (20)
- Boolean type field results data not rendered. HOT 1
- object with included object HOT 2
- Tooltip overflowing container HOT 2
- Bumping to MUI 19
- show viewed rows
- disable when loading
- is it supports with server side data ?
- i am getting below error HOT 5
- rowSizeList can not open the list menu HOT 1
- Button instead of IconButton in toolbar.
- Total Page number show in drop menu
- popover of rowSize is opened on top left screen instead of on place HOT 1
- react 16? HOT 3
- peer dependency material-ui
- autosize column width as per contents
- TypeError: Cannot read property 'baseTheme' of undefined HOT 3
- onTouchTap Warning
- muiTheme problem with "material-ui": "next"
- getting Warning: Expected `onMouseUp` listener to be a function, instead got `false`.
- The Table rows don't stay selected when the state of a variable changes.
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-ui-datatables.