Child component override tile click?

Get help with using Metro 4 components
Post Reply
shnar
Posts: 6
Joined: Mon Nov 26, 2018 12:52 pm
Status: Offline

Child component override tile click?

Post by shnar » Thu Nov 29, 2018 7:28 pm

I have a table on a div with overflow:auto enabled on a Tile that I want when a user clicks on it (say for example clicks on a TH or on the Scrollbar, etc) that it does *not* invoke the Tile click. Is that a possibility?

-shnar

User avatar
olton
Site Admin
Posts: 133
Joined: Mon Apr 09, 2018 6:19 pm
Location: Kiev, Ukraine
Status: Offline

Post by olton » Thu Nov 29, 2018 7:38 pm

Code: Select all

$(table).on("click", function(e){
    e.stopPropagation();
})

shnar
Posts: 6
Joined: Mon Nov 26, 2018 12:52 pm
Status: Offline

Post by shnar » Mon Dec 03, 2018 5:03 pm

Thanks, worked like a charm. I kind of thought this would be a normal html/javascript question, not a metroui question.

-shnar

Post Reply