Skip to Content
0

How to prevent table Line item press

Aug 21, 2017 at 01:45 PM

59

avatar image

Hello

I have Table with ColumnListItems for which line item press has been enabled. I also have an icon in every row for which I need to have an press event and on click show some info. If I click on the icon, the info shows up but the Table Line Item press event also gets fired.

How to prevent this bubbling up of the event. I tried with cancelBubble() method on the icon's press event but it dopes not work. Here is a plunker example

https://plnkr.co/edit/k0Ntkgwg8HkbMD0As1GH

Sorry, had to hijack someone else's example.

Any input will be helpful

Regards

Sandip

10 |10000 characters needed characters left characters exceeded

Hi Sandip,

In the Plnkr, when I click on the icon, I just get alert 'icon pressed'. I do not get 'list item pressed'. But that is what you wanted right?

Am I missing anything?

0

Hi krishna

The list item also gets pressed. I just tried it again

You will see 2 alerts, one for icon and other for line item press

err.jpg (59.8 kB)
0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member
Aug 23, 2017 at 12:18 AM
2

sorry Sandip.

I do not understand your qurestion. Maybe you can look at this

http://jsbin.com/yivogiv/edit?html,js,output

and tell us your requirement

thanks

-D

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks Dennis

This what I was looking for.

Regards

Sandip

0
Irfan Gokak Aug 22, 2017 at 03:04 PM
0

Hi Sandip,

Do you want to do some actions on Item Press also Icon also? or Only on icon?

Share
10 |10000 characters needed characters left characters exceeded