p-column hidden

UI Components for Angular
Post Reply
fiorenzopizza
Posts: 8
Joined: 23 Jan 2015, 13:29

05 May 2016, 17:51

Hi,

i saw in the documentation that an attribute named 'hidden' exists on p-column.
How does it work?

For instance when i use:
<p-dataTable [value]="element.members">
<p-column field="fieldName" header="Field Name" [hidden]="element.condition"></p-column>
...
</p-dataTable>
i have this error:

EXCEPTION: Error: Uncaught (in promise): Template parse errors:
Unexpected closing tag "p-column" ("
<p-column field="fieldName" header=Field Name" [hidden]=""element.condition">[ERROR ->]</p-column>

<p-column style="width:10%;text-align:center">
"): ModuliEdit@281:99

Any suggestion?

thanks in advance

Fiorenzo

fiorenzopizza
Posts: 8
Joined: 23 Jan 2015, 13:29

05 May 2016, 17:55

Sorry,

the error was a simple typo..

Oops!

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

05 May 2016, 17:56

Good to hear.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests