Adding custom text between length changing input control and search
Adding custom text between length changing input control and search
shivaselvadurai
Posts: 7Questions: 3Answers: 0
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
This discussion has been closed.
Answers
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
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
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