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

Bug on p-tree template #15222

Closed
neergaby95 opened this issue Apr 5, 2024 · 0 comments
Closed

Bug on p-tree template #15222

neergaby95 opened this issue Apr 5, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@neergaby95
Copy link

neergaby95 commented Apr 5, 2024

Describe the bug

When try to use template on p-tree, didn't use the template to display, like use the datas from [value]

<div *ngIf="isContextMenuVisible && workspaceList">
    <p-tree [value]="files" class="w-full md:w-30rem p-treeselect-panel" (onNodeContextMenuSelect)="onContextMenuSelect($event)"
            (onNodeSelect)="onSelect($event)" (onNodeUnselect)="onUnselect($event)" [loading]="loading"
            selectionMode="{{selectionMode?'checkbox':'single'}}" [filter]="true" [(selection)]="selectedFile" [contextMenu]="cm">
        <ng-template let-node pTemplate="default">
            <span [pTooltip]="node.label" tooltipPosition="top">{{ node.label | slice:0:10 }}</span>
        </ng-template>
    </p-tree>
    <p-contextMenu  #cm [model]="selectedFileContextMenu" appendTo="body"></p-contextMenu>
</div>

Environment

when i open subcategories, the data is coming from list, without use ng-template
Capture

Reproducer

No response

Angular version

17.0.5

PrimeNG version

17.12.0

Build / Runtime

Angular CLI App

Language

ALL

Node version (for AoT issues node --version)

9.8.1

Browser(s)

chrome

Steps to reproduce the behavior

No response

Expected behavior

No response

@neergaby95 neergaby95 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 5, 2024
@neergaby95 neergaby95 changed the title Component: Title Bug on p-tree template Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant