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

TreeSelect: 'itemcheckboxicon' issue #15086

Closed
adoalin opened this issue Mar 19, 2024 · 0 comments · Fixed by #15087
Closed

TreeSelect: 'itemcheckboxicon' issue #15086

adoalin opened this issue Mar 19, 2024 · 0 comments · Fixed by #15087
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@adoalin
Copy link
Contributor

adoalin commented Mar 19, 2024

Describe the bug

When using the <p-treeSelect> component, we can customize the style of the checkboxes by setting the itemcheckboxicon template. However, we are unable to set the style for the partially selected state by accessing partialSelected.

<p-treeSelect class="w-full md:w-20rem" containerStyleClass="w-full" [(ngModel)]="selectedNodes" [options]="nodes" display="chip" [metaKeySelection]="false" selectionMode="checkbox" placeholder="Select Item">
  <ng-template let-partialSelected="partialSelected" pTemplate="itemcheckboxicon">
    <div [class]="partialSelected ? 'my-checkbox-minus-icon' : 'my-checkbox-icon'"></div>
  </ng-template>
</p-treeSelect>

Environment

Windows 10, Chrome

Reproducer

No response

Angular version

15.2.1

PrimeNG version

15.4.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

v16.14.0

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@adoalin adoalin added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 19, 2024
@cetincakiroglu cetincakiroglu added this to the 17.12.0 milestone Mar 19, 2024
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants