Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35340

How can I set the height of a data-table-column?

$
0
0

I've been trying out DataTables.net and I followed this example: https://www.npmjs.com/package/angular-4-data-table . Here you can see some code like :

<

div id="dataTableDiv" *ngIf="tableResource !== undefined;else waitingText">
<data-table id="eaditemsGrid"
headerTitle="EAD Process items"
[items]="items"
[itemCount]="itemCount"
(reload)="reloadItems($event)"

    (rowClick)="rowClick($event)"
    (rowDoubleClick)="rowDoubleClick($event)"
    [rowTooltip]="rowTooltip"
    >
    <data-table-column
        [property]="'id'"
        [header]="'id'"
        [sortable]="true"
        [resizable]="true"
        [width]="300">
    </data-table-column>
>>...  

As you can see "width" is a good property, but "height" not, also trying to change the height of the "tr" in my "dataTableDiv" via css doesn't seem to work... Does anyone have an idea of how I can change the height of each tr or row of data to my own value (like 150 px for example)?


Viewing all articles
Browse latest Browse all 35340

Trending Articles