Angular Primeng表格在可选行的末端添加动作按钮

发布于 2025-01-23 04:35:08 字数 611 浏览 1 评论 0原文

我在Primeng上工作。我有一个p-table,on select on on(示例stack blitz: table select table select select demo )。

我想做的:在每行末尾添加一个图标按钮,将用户重定向到新页面。

问题:当我单击“图标”按钮时,还选择了该行(并在图标按钮创建的新页面外打开其他内容)。

理想情况下,该行是可以选择的,但在最后一列(图标按钮为)中不可选择。 我很快就与此问题创建了一个stackblitz,请告诉我您是否需要更多信息:

stackblitz with with with with这个问题

I work on an angular application with PrimeNG. I have a p-table with single select on (example on stack blitz : table select demo).

What i want to do : Add at the end of each row an icon button to redirect the user to a new page.

The problem : When i click on the icon button, the row is also selected (and open something else in addition of the new page created by the icon button).

Ideally, the row is selectable, but not on the last column (where the icon button is).
I have quickly created a stackblitz with the issue, tell me if you need more infos:

stackblitz with the issue

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文