How autowidth works and how to properly manage fluid and fixed column widths?

How autowidth works and how to properly manage fluid and fixed column widths?

sapotsapot Posts: 14Questions: 8Answers: 0

Hi,

I don't see anywhere a good reference explaining how autowidth actually works in terms of calculating the width for each column. Help page just says this: https://datatables.net/reference/option/autoWidth

  1. Can someone give more details on that works?

  2. In a related note, what's the best way to set my 3-col table where I require that:

    • 2nd col should always be a fixed 50px
    • last col should always be a fixed 100px
    • 1st column should just take up the remaining width available.

The total width for the table is not known as it's 100% of browser width. I'm expecting the table to work nicely in lower and higher resolutions with a fluid layout.

As an extra bonus: is it possible to set my 1st column to have text-overflow: ellipsis without having a fixed width for that 1st column?

This discussion has been closed.