Layout doesn't show up

Layout doesn't show up

adelsolisadelsolis Posts: 3Questions: 0Answers: 0
edited November 29 in Free community support

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

  • adelsolisadelsolis Posts: 3Questions: 0Answers: 0

    1 - doesn't work.

    2- works like sharm

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974
    edited November 29

    Since layout and dom are meant for the same purpose you can't configure them both. Remove the dom option for the layout option to work. Here is an example of your layout code:
    https://live.datatables.net/miyiconi/1/edit

    Kevin

  • adelsolisadelsolis Posts: 3Questions: 0Answers: 0

    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.

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974
    edited November 29

    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

    nothing shows when I configure layout.

    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

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974

    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

Sign In or Register to comment.