how to create example testcase from these examples given in datatables
how to create example testcase from these examples given in datatables
umaeswara
Posts: 83Questions: 16Answers: 0
for example I want to create a testcase which is a clone of this -- https://datatables.net/examples/advanced_init/complex_header.html
i want to add individual column search for this example
and also add individual column hide/show toggle for this example.
do you already have an example code for this scenario?
thanks,
Uma-
This discussion has been closed.
Answers
There's not an example with all that in. With those complex headers with
rowspan
andcolspan
you'll need to have some logic when hiding and showing then to make sure labels and alignment work as expected.The searching is demonstrated here, and the visibility here.
Colin
Hi Colin,
I have created the example testcase here, i have included colspan and also the search fields. it is working. but search fields are at footer, i want them on top. is there a way to get this testcase changed to get the search on top?
And i was trying to include colvis, but unable to do so. please can you advise on how i include column visibility? it need not be at sub-level, there should be a provision to hide HR Information, Contact .
here is my testcase http://live.datatables.net/qutizisu/1/edit
Hi Colin,
i am able to create the column toggle way of show/hide http://live.datatables.net/qutizisu/1/edit
thanks,
Uma-
Yep, you would adjust the code like this to get the searches in the headers: http://live.datatables.net/qutizisu/2/edit
Colin