Is it possible to position the buttons on the RHS of the page just to the left of the search field?

Is it possible to position the buttons on the RHS of the page just to the left of the search field?

BruceWBruceW Posts: 5Questions: 2Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Answers

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

    The dom option is used to control the layout of the Datatables elements.

    Kevin

  • BruceWBruceW Posts: 5Questions: 2Answers: 0

    Thanks. I am already using the dom option (dom: 'lBfrtip') which places the buttons on the same line as the length and the filtering options, but on the LHS of the page. I am trying to get them on the RHS.

    Bruce.

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

    I'm not a CSS expert so don't have a specific answer but you could inspect the page to see what CSS is assigned to the buttons and modify it to meet your needs. This looks like the default:

    div.dt-buttons {
        position: relative;
        float: left;
    }
    

    Kevin

  • BruceWBruceW Posts: 5Questions: 2Answers: 0

    Thanks, I will give that a go and see how it works with the search option.

    Bruce.

Sign In or Register to comment.