customizing dom layout

customizing dom layout

hnhegdehnhegde Posts: 68Questions: 17Answers: 0

Hello Folks,
If I specify dom as: "flrt", I would have expected the filtering and length changing inputs to be on the same line. However there is a line break after filtering. Can anyone kindly advise how to get them on the same line and adjacent to each other? Please refer to screenshots attached.

Thanks
Harsha

This question has an accepted answers - jump to answer

Answers

  • hnhegdehnhegde Posts: 68Questions: 17Answers: 0

    Inspecting the page shows that filter and length elements are in their own div tags, which would explain the line break. PFA screenshot. But, I wonder why would that be? I have specified the dom as:
    dom: 'flrtp'
    Also tried:
    dom: '<fl>rtp'
    But that added an extra div without removing the previous divs.

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi @hnhegde ,

    Yep, all the controls are in their own div tags - this allows greater customisation. You can use CSS to style and place them as you please.

    Cheers,

    Colin

  • hnhegdehnhegde Posts: 68Questions: 17Answers: 0

    HI @colin,
    Good timing! I just got it working purely using flexbox controls:
    dom: "<'row d-flex flex-row align-items-end'<'col-md-10'f><'col-md-2'l>>trp",

    Thanks for looking into my question!

    Regards,
    Harsha

This discussion has been closed.