Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make TreeTable use expandedIcon and collapsedIcon #6747

Closed
LGougerot opened this issue Oct 24, 2018 · 3 comments
Closed

Make TreeTable use expandedIcon and collapsedIcon #6747

LGougerot opened this issue Oct 24, 2018 · 3 comments

Comments

@LGougerot
Copy link

The expandedIcon and collapsedIcon in TreeNode are unused in TreeTable.

This feature was apparently implemented in previous version after issue #2269 but seems to have been lost in new 6.x TreeTable.

Can this behavior be reimplemented in new version ?

Thanks.

@namdien177
Copy link

namdien177 commented Jul 18, 2019

I'm also facing this issue and eventually come up with a hardcore checking
<ng-container *ngIf="rowNode['level'] === 0 && !rowNode['node'].expanded"> <i class="ml-1 pi pi-folder"></i> </ng-container> <ng-container *ngIf="rowNode['level'] === 0 && rowNode['node'].expanded"> <i class="ml-1 pi pi-folder-open"></i> </ng-container>
with
<ng-template let-rowData="rowData" let-rowNode pTemplate="body">
and
<tr [ttRow]="rowNode" [ttSelectableRow]="rowNode">

It's a bit late but hopefully newcomer won't be suffering from this simple task...

@cagataycivici cagataycivici added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Type: Bug Issue contains a bug related to a specific component. Something about the component is not working labels Oct 1, 2019
@cagataycivici
Copy link
Member

New treetable is template based so these icon properties are not used. You may add them or any icon of your choice using template.

@sh977218
Copy link

sh977218 commented Mar 8, 2023

Does the template support expandedIcon/collapsedIcon? i.e. When I try to use pTemplate, those expand/collapse icons are always default one, doesn't matter what I give.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants