Giter Club home page Giter Club logo

Comments (6)

hyojin avatar hyojin commented on May 28, 2024 2

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.

advance512 avatar advance512 commented on May 28, 2024 2

Tried it - works nicely! Thank you :)

👍

from material-ui-datatables.

hyojin avatar hyojin commented on May 28, 2024 1

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.

advance512 avatar advance512 commented on May 28, 2024

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.

hyojin avatar hyojin commented on May 28, 2024

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.

advance512 avatar advance512 commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.