Column filter size

Column filter size

Loren MaxwellLoren Maxwell Posts: 406Questions: 99Answers: 10

Any way to control the column size when doing the individual column filters?

For example, the Age column in the example could probably be half the size:
https://datatables.net/extensions/fixedheader/examples/options/columnFiltering

I've added a custom class to mine, but it gets overridden with an actual width in pixels.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    That is ugly - thanks for posting that out. Use thead input { width: 100% } to resolve that.

    Allan

  • Loren MaxwellLoren Maxwell Posts: 406Questions: 99Answers: 10
    edited February 2018

    Actually, @allan, upon further investigation I think the widths of the inputs are already at 100% by default.

    The <th> width is somehow being set to a specific pixels width for the first row (the actual header row), not the input row.

    That's where I was getting hung up before.

This discussion has been closed.