lengthMenu location
lengthMenu location
I just added the Editor to basically mirror the example given for bootstrap3 and the buttons took the position of the lengthMenu and it moved up above it and doesn't look right. Is there an easy way to relocate it below the table and in front of the "Showing x to x of x entries" text?
Also, there isn't a space between the "Showing x to..." and the "x row selected" labels. And when I have my browser taking up the full width of the monitor and click new or edit, the horizontal line on the bottom is pushed up under the first label/field, but if resize the browser window to a smaller width, it shows up just above the bottom buttons as expected.
Just a few cosmetic things that are bugging me and I know I could solve it myself with some styling and JQuery but if there's an easier way that's provided, I'd prefer to handle it that way. Other than that, I'm really happy with this!
Answers
Yes, the
dom
parameter is the one that can be used to tell DataTables where in the DOM the various elements should be placed.Note that the Bootstrap string is a bit longer than the DataTables default since it makes use of the Bootstrap grid. You will need to use that full string and modify it to suit your needs. The default for the Bootstrap string, so you can modify it, is shown in the
dom
documentation.Regards,
Allan