Ngx-datatable: How to set a class row ?

Created on 15 May 2017  路  3Comments  路  Source: swimlane/ngx-datatable

Hello, I don't understand how to add a class on a row ?

I have the latest version

This is my code :

[rows]="profils" [columnMode]="'force'" [scrollbarV]="true" [scrollbarH]="false" [selected]="profilSelected" [selectionType]="'single'">


Nom
{{row.profil.nom}}

  </ngx-datatable-column>
  <!--Colonne --Titre---->
  <ngx-datatable-column  name="prenom" [width]="50">
    <ng-template let-sort="sortFn" let-column="column" ngx-datatable-header-template><span (click)="sort()">Pr茅nom</span></ng-template>
    <ng-template  let-row="row"  ngx-datatable-cell-template><span title="{{row.profil.prenom}}">{{row.profil.prenom}}</span></ng-template>
  </ngx-datatable-column>

  <!--Colonne --Fonctions---->
  <ngx-datatable-column name="fonction" [width]="100">
    <ng-template let-sort="sortFn" let-column="column" ngx-datatable-header-template><span (click)="sort()">Fonction</span></ng-template>
    <ng-template  let-row="row"  ngx-datatable-cell-template><span title="{{row.profil.fonction}}">{{row.profil.fonction}}</span></ng-template>
  </ngx-datatable-column>

  <!--Colonne --Fonctions---->
  <ngx-datatable-column name="etat" [width]="100">
    <ng-template let-sort="sortFn" let-column="column" ngx-datatable-header-template><span (click)="sort()">Etat</span></ng-template>
    <ng-template let-row="row" ngx-datatable-cell-template><span title=""></span></ng-template>
  </ngx-datatable-column>
</ngx-datatable>

thx for your help

Most helpful comment

The above GitHub link is giving 404 error.
I am also stuck on the same issue, I don't know how to add custom css to each row of the table.

All 3 comments

The above GitHub link is giving 404 error.
I am also stuck on the same issue, I don't know how to add custom css to each row of the table.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JanStock picture JanStock  路  3Comments

ChanBen picture ChanBen  路  3Comments

iget-esoares picture iget-esoares  路  3Comments

lautarobock picture lautarobock  路  3Comments

Matthi0uw picture Matthi0uw  路  3Comments