Checkbox inside button collection does not work

Checkbox inside button collection does not work

razorxxxrazorxxx Posts: 5Questions: 1Answers: 0

Hi there!
I'm trying to put some checkboxes inside dropdown menu (button collection). However, my checkboxes are unable to set as checked.
My code is:

"buttons": [
            {
                extend: 'collection',
                text: '<span class="glyphicon glyphicon-export"></span> Exportar',
                className: 'btn btn-info text-white',
                buttons: [
                    {
                        text: '<div>Export options:<br /></div><div><label><input type="checkbox" id="all_pages" /> All pages</label></div><div><label><input type="checkbox" id="selec_rows" /> Selected rows</label></div>'
                    }
                         }
                ]

Any ideas to solve this problem? Please consider now I'm just using Bootstrap DataTables.

Thanks in advance!

Answers

  • razorxxxrazorxxx Posts: 5Questions: 1Answers: 0

    Anybody?

    If I write the checkboxes outside the table there is no problem, but I would like to put them inside a dropdown menu (button collection).

    Please help!

This discussion has been closed.