title: How to add style class to p-dataTable row
body: <p>We're using p-dataTable from PrimeNG 1.0.0-beta.16</p>
  
  <p>I want to add a style to the row when a value is true.
  I figured it out how to do this with the cell, but I need the whole row the change its background.</p>
  
  <pre><code>&lt;p-dataTable [hidden]="loading" [value]="timePeriods" scrollable="true" scrollHeight="400px" rowStyleClass="missingPeriod"&gt;
      &lt;p-column field="StartDate" header="Begindatum" sortable="false"&gt;
          &lt;template let-col let-timePeriod="rowData" pTemplate type="body"&gt;
              &lt;span [class.missingPeriod]="!timePeriod.IsNext"&gt;{{timePeriod.StartDate | date: 'dd-MM yyyy'}}&lt;/span&gt;
          &lt;/template&gt;
      &lt;/p-column&gt;
      &lt;p-column field="EndDate" header="Einddatum" sortable="false"&gt;
          &lt;template let-col let-timePeriod="rowData" pTemplate type="body"&gt;
              &lt;span&gt;{{timePeriod.EndDate | date: 'dd-MM yyyy'}}&lt;/span&gt; 
          &lt;/template&gt;
      &lt;/p-column&gt;
  &lt;/p-dataTable&gt;
  </code></pre>
  
  <p><code>&lt;span [class.missingPeriod]="!timePeriod.IsNext"&gt;</code> is working but <code>rowStyleClass="missingPeriod"</code> is not.</p>
  
  <p>Please advice.</p>
  
  <p><strong>Updated syntax</strong>:</p>
  
  <p>Updated to v1.0.1</p>
  
  <pre><code>&lt;p-dataTable [hidden]="loading" [rowStyleClass]="customRowClass" [value]="timePeriods" scrollable="true" scrollHeight="400px"&gt;
      &lt;p-column field="StartDate" header="Begindatum" sortable="false"&gt;
          &lt;template let-col let-timePeriod="rowData" pTemplate type="body"&gt;
              &lt;span [class.missingPeriod]="!timePeriod.IsNext"&gt;{{timePeriod.StartDate | date: 'dd-MM yyyy'}}&lt;/span&gt;
          &lt;/template&gt;
      &lt;/p-column&gt;
      &lt;p-column field="EndDate" header="Einddatum" sortable="false"&gt;
          &lt;template let-col let-timePeriod="rowData" pTemplate type="body"&gt;
              &lt;span&gt;{{timePeriod.EndDate | date: 'dd-MM yyyy'}}&lt;/span&gt;
          &lt;/template&gt;
      &lt;/p-column&gt;
  &lt;/p-dataTable&gt;
  </code></pre>
  
  <p>And the typescript:</p>
  
  <pre><code>public customRowClass(rowData, rowIndex): string {
      console.log("In customRowClass");
      console.log(rowData);
      console.log(rowIndex);
      return "";
  }
  </code></pre>
  
  <p>Nothing inside <code>customRowClass</code> is logged. It seems to me this method isn't called.</p>