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

Primevue Datatable Column's template #rowtogglericon #7297

Open
1 of 4 tasks
Guayabass opened this issue Feb 21, 2025 · 0 comments
Open
1 of 4 tasks

Primevue Datatable Column's template #rowtogglericon #7297

Guayabass opened this issue Feb 21, 2025 · 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

@Guayabass
Copy link

Describe the bug

I am currently using row expansion in my primevue datatable and v4.2.5 and when I try modifying the toggler using the template, it won't work, but when I use the deprecated one it works?

<Column expander style="width: 200px" header="Actions"> <template #rowtogglericon="{ rowExpanded }"> <i v-if="rowExpanded" class="fa-light fa-xmark"></i> <i v-else class="fa-light fa-check"></i> </template> </Column>

I just did that as a test and it works just fine using the deprecated #rowtogglericon but if I use #rowtoggleicon it won't work.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/2bgmsic3?file=src%2FApp.vue

Environment

Same as the stackblitz

Vue version

3

PrimeVue version

4.2.5

Node version

No response

Browser(s)

No response

Steps to reproduce the behavior

Try modifying the icon from the #rowtoggleicon and it won't work, change to #rowtogglericon and it will.

Expected behavior

To change the icon and appearance of the row expansion icon

@Guayabass Guayabass added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 21, 2025
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