Not logged in. · Lost password · Register
Forum: General Help and Support Templates and Layout RSS
Bootstrap 3 vs datatables plugin
Avatar
noctifer #1
Member since Apr 2018 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: Bootstrap 3 vs datatables plugin
Hi all,

On our DokuWiki we are using a lot of tables that we would like to be as pretty and interactive as possible. For instance, we would like to use the column visibility toggle option that allows the user to hide certain columns. Our DW is using the Bootstrap 3 template.

We are currently facing some obstacles that I would like to get help on:

1. A possible formatting conflict between the table and TOC. If the table is inserted without using the datatables plugin (the <datatables> tag), everything looks fine. However, with the <datatables> tag, the search and page fields get shifted by TOC producing an unsightly vertical gap between those fields and the table itself, see images here: https://github.com/LotarProject/dokuwiki-plugin-datatables…. How can this be avoided?

2. Since datatables is included in the Bootstrap 3 template, there seems to be no reason to use the plugin. Could somebody explain how to use the additional options without relying on the <datatables> tag? E.g., insert buttons?

3. Datatables library includes a "colvis" button for toggling column visibility. The required js script is not enabled in the Datatables plugin by default but I managed to get it running by adding it inside the Action.php file. My question is, if we don't use the plugin but just the Bootstrap 3 template, what should I change to enable this?

Thanks in advance!
Avatar
noctifer #2
Member since Apr 2018 · 2 posts
Group memberships: Members
Show profile · Link to this post
Is this a completely wrong question to ask here or is there nobody that could help?
Avatar
LarsDW223 #3
Member since Sep 2014 · 398 posts · Location: Paderborn
Group memberships: Members
Show profile · Link to this post
Don't worry, it is the right place. But I guess no one can answer your question or no one had the time to test it...

A question from my side:
What happens if you use datatables with a different template?
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-05-26, 17:35:03 (UTC +02:00)