Layout doesn't show up
Layout doesn't show up
adelsolis
Posts: 3Questions: 0Answers: 0
Hi, I'm new to Datatables.
I have this angular project using datatables.net version 2.1.8.
I try to use layout config option to arrange elements around table, nothing shows when I configure layout.
If I use "DOM" deprecated option then it works...
What's the correct way to configure Datatables options to make layout works ?
am I missing something ????
Replies
1 - doesn't work.
2- works like sharm
Since
layout
anddom
are meant for the same purpose you can't configure them both. Remove thedom
option for thelayout
option to work. Here is an example of yourlayout
code:https://live.datatables.net/miyiconi/1/edit
Kevin
the two options in the image it's just to show the way I'm using it, actually I', using only DOM, LAYOUT causes no effect in that configuration.
My test case with your
layout
settings works. The only suggestion I have is to make sure you are loading Datatables 2 not Datatables 1.x. Maybe clear the browser's cache. Otherwise to help debug we will need to see a running test case showing the issue.https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Are you saying that none of the Datatbles elements show or that they aren't showing the way you configured them?
If nothing is showing then look at the browser's console for errors.
Kevin
Are you using the Yarja Dataables library? Looks like it might only support Datatables 1.10. If you are using this library then check with their developers about the support for
layout
.Kevin