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

po-list-view: função para determinar ação visível recebe parametro errado #2059

Open
2 of 10 tasks
likid opened this issue May 10, 2024 · 0 comments
Open
2 of 10 tasks
Labels
bug Something isn't working

Comments

@likid
Copy link

likid commented May 10, 2024

Ao criar um po-list-view e atribuir ações a ela, na propriedade visible de cada ação, se for atribuído uma função, esta função recebe como parametro a própria função ao invés de receber o item que está sendo listado no list-view

https://stackblitz.com/edit/po-ui-vrvqvj?file=src%2Fmain.ts,src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.component.html

Vejam no console o que é impresso pela função atribuída na propriedade visible.

O erro ocorre devido a chamada da função returnBooleanValue() feito pela função get visibleActions() no fonte po-list-view.component.ts

  • PO UI: 17.x
  • Angular: 17.x
  • Browser(s):
    • Chrome
    • Firefox
    • Edge
    • Safari
    • IE 11
    • Outros
  • Operating System:
    • Windows
    • macOS
    • Ubuntu
    • Outros
@likid likid added the bug Something isn't working label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant