Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table checkbox data-on-check-click #1476

Closed
rooks-1 opened this issue Dec 12, 2019 · 2 comments
Closed

Table checkbox data-on-check-click #1476

rooks-1 opened this issue Dec 12, 2019 · 2 comments
Labels
Milestone

Comments

@rooks-1
Copy link

rooks-1 commented Dec 12, 2019

When clicking a button to trigger table checkbox, data-on-check-click doesn't fire.

When manually clicking the checkbox in table, the event fires.

Is there a way to trigger the checkbox event in code?

  <table data-role="table" class="table" data-check="true" data-show-pagination="false"
       data-show-search="false" data-show-table-info="false" data-show-rows-steps="false"
       data-on-check-click="checkClick">
       <thead>
           <tr>
               <td>ColA</td>
               <td>ColB</td>
           </tr>
       </thead>
       <tbody>
           <tr>
               <td>A</td>
               <td>B</td>

           </tr>
       </tbody>
   </table>

   <button onclick="buttonclick()">checkbox</button>
    <script>

        function checkClick() {
            console.log("checkbox clicked....")
        }

        function buttonclick() {
            $("input[type=checkbox]").click();
        }

    </script>

Tested using Metro 4.3.4 in Chrome

@olton
Copy link
Owner

olton commented Dec 16, 2019

fixed in 4.3.5, thanks

@rooks-1
Copy link
Author

rooks-1 commented Dec 17, 2019

Thanks, tested and works in 4.3.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants