<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>PrimeNG on bradleycarey.com</title>
    <link>https://bradleycarey.com/tags/primeng/</link>
    <description>Recent content in PrimeNG on bradleycarey.com</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sat, 02 Sep 2023 22:22:18 -0400</lastBuildDate>
    <atom:link href="https://bradleycarey.com/tags/primeng/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Make dynamic PrimeNG table columns conditionally editable</title>
      <link>https://bradleycarey.com/posts/primeng-table-conditional-column-editable/</link>
      <pubDate>Tue, 10 May 2022 16:11:00 -0400</pubDate>
      <guid>https://bradleycarey.com/posts/primeng-table-conditional-column-editable/</guid>
      <description>&lt;p&gt;The &lt;a href=&#34;https://primeng.org/table&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;PrimeNG table&lt;/a&gt; component is a powerful data visualization tool and is a great free alternative to &lt;a href=&#34;https://www.ag-grid.com/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;AG Grid&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Table columns can be &lt;a href=&#34;https://primeng.org/table#dynamic&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;defined dynamically&lt;/a&gt; using the &lt;code&gt;*ngFor&lt;/code&gt; directive. However, if you do this there is no apparent way to conditionally mark a column as editable!&lt;/p&gt;&#xA;&lt;p&gt;There is actually an undocumented &lt;code&gt;pEditableColumnDisabled&lt;/code&gt; boolean directive that can be used to control if a cell is editable or not. The only documented directives are &lt;code&gt;pEditableColumn&lt;/code&gt; and &lt;code&gt;pEditableColumnField&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
