TreeTable unable to access sub-properties of data

UI Components for Angular
Post Reply
bluesotar
Posts: 2
Joined: 18 Aug 2016, 06:37

01 Sep 2016, 07:46

I'm trying to use the TreeTable as follows:

Code: Select all

<p-treeTable [value]="treeNodes" selectionMode="single" [(selection)]="selectedTreeNode"
                    (onNodeExpand)="nodeExpand($event)" (onNodeSelect)="onNodeSelect($event)" >
                <header>Object Model</header>
                <p-column field="objectName" header="Object Name"></p-column>
                <p-column field="feature.Name" header="Feature"></p-column>
                <p-column field="shortDescription" header="Description"></p-column>
</p-treeTable>
The feature column doesn't get populated unless I pull the name up to the root level of the object. I expected to be able to access properties of object types since this works when used within a DataTable.

Is this something I'm doing wrong, a bug, or just not designed to work this way?

Thanks,

Nick

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

01 Sep 2016, 16:45

We will check this out for tomorrow's beta15 release.


Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests