Closed donpir closed 7 years ago
The on-click attribute is useful to specify a function to call when the user clicks on the table items.
Actually to do this, the user need to write this type of code
<script> var $tbl = document.querySelector("#tbl"); $tbl.addEventListener('data-table-item-clicked-event', function (evt) { var item = evt.detail.item; console.log(item); }); </script>
The on-click attribute is useful to specify a function to call when the user clicks on the table items.
Actually to do this, the user need to write this type of code