Adding custom text between length changing input control and search

Adding custom text between length changing input control and search

shivaselvaduraishivaselvadurai Posts: 7Questions: 3Answers: 0
edited April 2018 in Free community support

I'm using following example for my table

https://datatables.net/examples/api/row_details.html

I want to add some custom texts / elements between the length changing control and searching control. I'm using following in the dom. I couldn't add toolbar into these attributes.

"dom": "<'row'<'col-md-6'l><'col-md-6'f>>" +
                    "<'row'<'col-md-6'><'col-md-6'>>" +
                    "<'row'<'col-md-12't>><'row'<'col-md-12'p>><'row'<'col-md-12'>>",

-Shiva S

Answers

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

    Hi @shivaselvadurai ,

    I suspect that dom option of yours may be more complicated than you need. Take a look at the example here - I think you could probably get away with doing something like that.

    Hope that helps,

    Cheers,

    Colin

  • shivaselvaduraishivaselvadurai Posts: 7Questions: 3Answers: 0

    I tried "dom": 'l<"toolbar">Btip', length changing control, toolbar and button don't come is same row. Is there something I have to do to make it one row.

    -Shiva S

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

    Hi @shivaselvadurai ,

    We just took a look at this and unfortunately you are probably going to need something as complicated as you had originally. If you insert something like '<"toolbar">' into the dom property where you want your custom element, you should be able to manipulate it there.

    Cheers,

    Colin

This discussion has been closed.