datatables icon indicating copy to clipboard operation
datatables copied to clipboard

Adjusting the width of a specific TD

Open Vichondrias1 opened this issue 2 years ago • 2 comments

i tried adjusting the width of this td inline to see if it changes but it doesnt, can you please help me with this. thanks in advance image

Vichondrias1 avatar Feb 07 '24 02:02 Vichondrias1

also this example, i want the header to be vertically align not collapse so i want also to adjust its width image

Vichondrias1 avatar Feb 07 '24 02:02 Vichondrias1

Sorry for the late response.

I used to set style directly in the markup for specific requirements, especialy for column sizing:

<tbody>
    <tr>
      <td style:min-width="400px">{row.smth}</td>
[...]

Or with table :global(th) CSS selector.

The ideal way would be to create your own Th component, and add a width property. I will think about adding it in a future version.

vincjo avatar Jun 05 '24 14:06 vincjo