DOM Specification Question

DOM Specification Question

ChrisAChrisA Posts: 7Questions: 2Answers: 0

Hi,

I'm struggling with laying out my table using the DOM specification, I've created some custom buttons for my table and I'm also using the Column Visibility button.

My DOM looks likes.... dom: 'Blfrtip'

This statement gives the controls I want to see, but the layout is cluttered as the length control is inserted immediately after the buttons on the same line.

What I'd like to achieve are the buttons on the first 'row' and the rest of the controls underneath. Something like dom: 'B<br>lfrtip'.

Any ideas how to squirt in a line break in between the buttons and length?

Chris

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin

    Hi Chris,

    Try:

    dom: '<B>lfrtip'
    

    i.e. put the Buttons in its own div.

    Allan

  • ChrisAChrisA Posts: 7Questions: 2Answers: 0

    Hi Allan,

    Thank you for replying. Sorry, the suggestion didn't work. Still looks the same.

    Is there anything I can provide that might help lead to a solution?

    Chris

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    Answer ✓

    A link to the page showing the issue please.

    Allan

  • ChrisAChrisA Posts: 7Questions: 2Answers: 0
    edited March 2016

    Hi,

    I achieved this by....

    .
    .
    dom: '<B><f><t><l>ip'.
    .
    .
    

    Works a treat.

    Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

This discussion has been closed.