DataTable - control columns width
See original GitHub issueWhat package(s) are you using?
-
carbon-components
-
carbon-components-react
Summary
How can I control columns width? Currently I have all columns equal within the 100% width of the table, but I wan to make all columns width stick to their content (max cell content), and the last column to take the rest of the width:
Relevant information
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:7 (3 by maintainers)
Top Results From Across the Web
columns.width - DataTables
Column width in tables depends upon many properties such as cell borders, table borders, the border-collapse property, the content of the table and...
Read more >How to set column widths to a jQuery datatable?
Basically i set the sScrollX to 200% then set the individual column widths to the required % that I wanted. The more columns...
Read more >Bootstrap jquery dataTable fixed columns Width - CodePen
<div class="col-md-12"> ... id="example" class="table table-striped table-bordered nowrap" cellspacing="0" width="100%"> ... b.williamson@datatables.net.
Read more >DataTables autoWidth Option - GeeksforGeeks
The autoWidth option is used to specify whether the automatic calculation of the column width in the DataTable is enabled or not.
Read more >FixedColumns example - Fluid column width
First name Last name Position Office Age Start date Salary
Airi Satou Accountant Tokyo 33 2008/11/28 $162...
Angelica Ramos Chief Executive Officer (CEO) London 47...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any update?
as I mentioned in my previous comment, flexbox styles need to be overridden. without an updated and properly reduced test case it’s difficult to show much more but here is a proof of concept using the sandbox provided above
https://codesandbox.io/s/codesandbox-forked-mdjm9