UI-Grid with button in custom cell template - How to cancel row select event?

后端 未结 1 865
遇见更好的自我
遇见更好的自我 2021-01-14 04:58

I am using ui-Grid v 3.0.1.

I have a custom cell template for a particular column which displays a button in each row. I have attached a ng-click attribute which ca

相关标签:
1条回答
  • 2021-01-14 05:37

    Just add

    $event.stopPropagation();
    

    to the ng-click attribute as you can see in this plunker.

    You can chain javascript calls inside your ng-click attribute just by writing them one next to another with a ; as a separator like this:

    ng-click = "instructionOne(); instructionTwo(argument); $event.stopPropagation();"
    
    0 讨论(0)
提交回复
热议问题