<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: There is any way to add  css in row  based on  condition in ADF-DataTable ? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/there-is-any-way-to-add-css-in-row-based-on-condition-in-adf/m-p/18886#M8359</link>
    <description>&lt;P&gt;I know this is already years too late.&lt;/P&gt;&lt;P&gt;But I wa wondering if its possible to apply a style to a row based on the data included in that row.&lt;/P&gt;&lt;P&gt;I know that ng-template allows us to access the data in that row but only in a cell level. Is it possible to do it in a row level?&lt;/P&gt;&lt;PRE&gt;&amp;lt;data-column&amp;gt;
&amp;lt;ng-template&amp;nbsp;let-entry="$implicit"&amp;gt;&amp;lt;/ng-template&amp;gt;
&amp;lt;/data-column&amp;gt;&lt;/PRE&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;PRE&gt;&amp;lt;ng-template&amp;nbsp;let-entry="$implicit"&amp;gt;
    &amp;lt;data-row [ngClass]="entry.row.getValue('name')==='value'?red-background:green-background"&amp;gt;
        &amp;lt;data-columns&amp;gt;
        .....
        &amp;lt;/data-columns&amp;gt;
    &amp;lt;/data-row&amp;gt;
&amp;lt;/ng-template&amp;gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 29 Apr 2021 07:40:22 GMT</pubDate>
    <dc:creator>JuanCarlos12</dc:creator>
    <dc:date>2021-04-29T07:40:22Z</dc:date>
    <item>
      <title>There is any way to add  css in row  based on  condition in ADF-DataTable ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/there-is-any-way-to-add-css-in-row-based-on-condition-in-adf/m-p/18884#M8357</link>
      <description>I am using adf data table to render data .there is any way to add css based on even or odd row</description>
      <pubDate>Tue, 18 Dec 2018 09:59:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/there-is-any-way-to-add-css-in-row-based-on-condition-in-adf/m-p/18884#M8357</guid>
      <dc:creator>dharmraj</dc:creator>
      <dc:date>2018-12-18T09:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: There is any way to add  css in row  based on  condition in ADF-DataTable ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/there-is-any-way-to-add-css-in-row-based-on-condition-in-adf/m-p/18885#M8358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi my suggestion, in general, is to give a look to the ADF repository documentation:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Alfresco/alfresco-ng2-components/tree/development/docs" title="https://github.com/Alfresco/alfresco-ng2-components/tree/development/docs" rel="nofollow noopener noreferrer"&gt;alfresco-ng2-components/docs at development · Alfresco/alfresco-ng2-components · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This topic in general is covered here:&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink11" href="https://github.com/Alfresco/alfresco-ng2-components/blob/development/docs/core/datatable.component.md" title="https://github.com/Alfresco/alfresco-ng2-components/blob/development/docs/core/datatable.component.md" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-ng2-components/blob/development/docs/core/datatable.component.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;search&amp;nbsp;for the key word css&amp;nbsp;in the page that I linked you above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2018 18:02:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/there-is-any-way-to-add-css-in-row-based-on-condition-in-adf/m-p/18885#M8358</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2018-12-20T18:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: There is any way to add  css in row  based on  condition in ADF-DataTable ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/there-is-any-way-to-add-css-in-row-based-on-condition-in-adf/m-p/18886#M8359</link>
      <description>&lt;P&gt;I know this is already years too late.&lt;/P&gt;&lt;P&gt;But I wa wondering if its possible to apply a style to a row based on the data included in that row.&lt;/P&gt;&lt;P&gt;I know that ng-template allows us to access the data in that row but only in a cell level. Is it possible to do it in a row level?&lt;/P&gt;&lt;PRE&gt;&amp;lt;data-column&amp;gt;
&amp;lt;ng-template&amp;nbsp;let-entry="$implicit"&amp;gt;&amp;lt;/ng-template&amp;gt;
&amp;lt;/data-column&amp;gt;&lt;/PRE&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;PRE&gt;&amp;lt;ng-template&amp;nbsp;let-entry="$implicit"&amp;gt;
    &amp;lt;data-row [ngClass]="entry.row.getValue('name')==='value'?red-background:green-background"&amp;gt;
        &amp;lt;data-columns&amp;gt;
        .....
        &amp;lt;/data-columns&amp;gt;
    &amp;lt;/data-row&amp;gt;
&amp;lt;/ng-template&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Apr 2021 07:40:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/there-is-any-way-to-add-css-in-row-based-on-condition-in-adf/m-p/18886#M8359</guid>
      <dc:creator>JuanCarlos12</dc:creator>
      <dc:date>2021-04-29T07:40:22Z</dc:date>
    </item>
  </channel>
</rss>

