Default layout - migration help

Default layout - migration help

itajackassitajackass Posts: 165Questions: 49Answers: 3

Hi, i'd like to migrate from my actually situation:

     $.extend( $.fn.dataTable.defaults, {
      "dom": "<'row-fluid'<'span6'B><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>"
 } );

to the new "layout" syntax.

I tried to use this:

   $.extend( $.fn.dataTable.defaults, {
    "layout": { topStart: 'buttons', topEnd: 'search' }
 } );

But the result is not as expected. CSS of my theme broke the layout.

How can I put the "buttons" inside the "span" (and "span" inside "row-fluid") of my old syntax? Thanks

This question has an accepted answers - jump to answer

Answers

  • itajackassitajackass Posts: 165Questions: 49Answers: 3

    Nevermind, i modified my css theme. All is ok now.
    But i'm curious to know how to insert custom "div/span/etc.." with predefined string like "buttons. search, etc... thanks"

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Answer ✓

    Currently there is no option to do that with layout. I'm going to look at how it might be possible to add it for 2.1.

    Allan

Sign In or Register to comment.