Angular Primeng表格在可选行的末端添加动作按钮
我在Primeng上工作。我有一个p-table,on select on on(示例stack blitz: table select table select select demo )。
我想做的:在每行末尾添加一个图标按钮,将用户重定向到新页面。
问题:当我单击“图标”按钮时,还选择了该行(并在图标按钮创建的新页面外打开其他内容)。
理想情况下,该行是可以选择的,但在最后一列(图标按钮为)中不可选择。 我很快就与此问题创建了一个stackblitz,请告诉我您是否需要更多信息:
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:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论