primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Arrow icons and another icon just after [ in TreeTable ]

Open Abhinav3414 opened this issue 8 years ago • 4 comments

I'm submitting a ...

[x] feature request => Please check if request is not on the roadmap already

Current behavior Currently we have one icon in TreeTable which expands and collapses the row item. We want another icon which can be placed next to it and have expand and collapse behavior as well.

Expected behavior We want same icon behavior in tree table as in tree right now. Example: Collapsed state : fa-caret-right [fa-folder] SomeFolderName Expanded state : fa-caret-down [fa-folder-open] SomeFolderName

Environments: Windows 10, Eclipse Oxygen.1a Release (4.7.1a)

latest 5 x of angular and prime

Abhinav3414 avatar Jan 08 '18 11:01 Abhinav3414

Use ng-template to do this. Example: <p-column header="{{'index-type-elem' | translate}}" [style]="{'width':'60%'}"> <ng-template let-col let-node="rowData" pTemplate="body"> <i class="index-icon icon fa fa-{{getIndexIcon(node)}}"></i> {{node.data.LIB_TYPE_ELEM}} </ng-template> </p-column>

djay1977 avatar Jan 08 '18 11:01 djay1977

@djay1977 it works, is there any handle to change icon when row is expanded and collapsed ?

Abhinav3414 avatar Jan 12 '18 09:01 Abhinav3414

expandedIcon & collapsedIcon properties on p-treetable

djay1977 avatar Jan 12 '18 09:01 djay1977

TreeTable will be reimplemented, please monitor;

#4813

cagataycivici avatar Jan 13 '18 22:01 cagataycivici