Using DataTables with TableCheckable
Using DataTables with TableCheckable
Nichiatu
Posts: 2Questions: 0Answers: 0
TableCheckable is a jQuery plugin not much unlike DataTables. It introduces some functionality and styling for having checkable table rows.
Now, in order to use TableCheckable, on has to apply some classes to the parent elements of the child elements, how would I apply classes to the element's parent? I guess I could do it dynamically through jquery (check for all td elements with an input checkbox child, but it would be better if there was some included way to do this).
My table is not tied to a server-side data source directly, but I am using PHP to load the data into the table (manually) simply because of my requirements.
The problem arises when I want to employ the AddData function. I can't say I can see a way of doing what I want, without just going back to normal tables (would take me 10x longer to develop, considering I am more or less done)...
I am also looking into utilizing HTML5's data-* attributes, is there a way to use those suckers too?
Now, in order to use TableCheckable, on has to apply some classes to the parent elements of the child elements, how would I apply classes to the element's parent? I guess I could do it dynamically through jquery (check for all td elements with an input checkbox child, but it would be better if there was some included way to do this).
My table is not tied to a server-side data source directly, but I am using PHP to load the data into the table (manually) simply because of my requirements.
The problem arises when I want to employ the AddData function. I can't say I can see a way of doing what I want, without just going back to normal tables (would take me 10x longer to develop, considering I am more or less done)...
I am also looking into utilizing HTML5's data-* attributes, is there a way to use those suckers too?
This discussion has been closed.