One table, different options
One table, different options
bpfh666
Posts: 2Questions: 1Answers: 0
Hi all,
I have a system which has one set of data but needs two different "views" depending on the user. One set needs a paginated view (a wall mounted monitor with no interaction) and another needs a scroll view (same details for execs to view on thier desktops).
Is it possible to define the table then switch the options after? From reading the forums I think not, but it's worth asking.
Paul
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @bpfh666 ,
No, as you say, those kind of settings are only defined when the table is being initialised.
One option that may work is to have a single page with both those tables on, and just hide the table that you don't want.
Cheers,
Colin
Thanks Colin. Exactly what I've done; just seems a bit wasteful to an old coder
How do you determine which Datatable options are needed?
Maybe you can use an if statement to init the version you want.
Kevin