Migrating dom to layout option

Migrating dom to layout option

mdellanave83mdellanave83 Posts: 33Questions: 3Answers: 0

Hi,
I would like to use the layout option instead of the dom one but I cannot rearrange the controls in the same way.

I'm currently using this dom option: <'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7 dt-pager-custom'lp>>

I tried with
{
topStart: null,
topEnd: null,
bottomStart: 'info',
bottomEnd: ['pageLength', 'paging'],
}

and seems to works, but how can I add a custom class to the bottomEnd?

This question has an accepted answers - jump to answer

Answers

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

    but how can I add a custom class to the bottomEnd?

    Currently you can't. You could however use:

    div.dt-container div.row:eq(2) > div:last-child {
      // ...
    }
    

    as a selector for that element.

    You request hasn't been the only one for that. I think it is something I'll need to look into for 2.1 :)

    Allan

  • mdellanave83mdellanave83 Posts: 33Questions: 3Answers: 0

    nice!
    thank you @allan

Sign In or Register to comment.