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

Arrow icons and another icon just after [ in TreeTable ] #4774

Closed
Abhinav3414 opened this issue Jan 8, 2018 · 4 comments
Closed

Arrow icons and another icon just after [ in TreeTable ] #4774

Abhinav3414 opened this issue Jan 8, 2018 · 4 comments

Comments

@Abhinav3414
Copy link

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

@djay1977
Copy link

djay1977 commented Jan 8, 2018

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>

@Abhinav3414
Copy link
Author

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

@djay1977
Copy link

expandedIcon & collapsedIcon properties on p-treetable

@cagataycivici
Copy link
Member

TreeTable will be reimplemented, please monitor;

#4813

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

3 participants