olton / Metro-UI-CSS

Impressive component library for expressive web development! Build responsive projects on the web with the first front-end component library in Metro Style. And now there are even more opportunities every day!
http://metroui.org.ua/
MIT License
7k stars 1.97k forks source link

How to clickable table row and return the object data? #1823

Closed tomeroto closed 2 years ago

tomeroto commented 2 years ago

How to clickable table row and return the object data? And how to add some button on table cell?

xscode-auto-reply[bot] commented 2 years ago

Thanks for opening a new issue. The author has been notified and will review it as soon as possible. For urgent issues and priority support, visit https://xscode.com/olton/Metro-UI-CSS or Patreon

olton commented 2 years ago

I already answered a similar question, look in the closed issues

tomeroto commented 2 years ago

can you give a link?

olton commented 2 years ago

Example - How to draw components and elements in table cell https://codepen.io/olton/pen/mdRwqBB

olton commented 2 years ago

To create a clickable row you must use live event binding/delegation

$(table).on("click", "tr", function(event){
    ...
})
tomeroto commented 2 years ago

thank you for the example.