GithubHelp home page GithubHelp logo

Comments (4)

ngduc avatar ngduc commented on June 20, 2024

@Etregoning The closest grid layout I could find is "fitDataFill". It will not show the background color when you resize columns.

Could you try it again here?
https://codesandbox.io/s/oxmj02v696

from react-tabulator.

Etregoning avatar Etregoning commented on June 20, 2024

Well, that definitely gives a better look, thanks... but I still think if it's possible to dynamically resize the last column, that would look a lot better :D

from react-tabulator.

olifolkerd avatar olifolkerd commented on June 20, 2024

Hey @Etregoning

There are quite a range of options for configuring your column layout

Have a look at the fitColumns layout mode in the Layout Documentation

You can use the widthGrow and widthShrink properties to determine the amount allocated to each column.

You can also use a combination of fixed width columns and variable width columns to achieve the look you are after, but you are correct, at the moment there is no feature to allow tables to be resizable and maintain a total width of 100%. if you feel that would be useful please raise an issue on the Tabulator Repo

I hope that helps,

Cheers

Oli :)

from react-tabulator.

ngduc avatar ngduc commented on June 20, 2024

Thanks for replying @olifolkerd I was going to point him to Tabulator or file a bug there myself.

Like @Etregoning , I tried different layouts: fitDataFill, firColumns & widthGrow and widthShrink but the last column still moves when resizing other columns. Ultimately (I think) @Etregoning wants the last column to take the remaining space.

This is an example: (using another grid) - http://jsfiddle.net/9js6z61g/
I'm closing this one & filing it in Tabulator. Thanks.

from react-tabulator.

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.