How to change the position and style of the search block and the number of records block?

How to change the position and style of the search block and the number of records block?

JenstelJenstel Posts: 14Questions: 4Answers: 0

Hi. Help me please.
How to change the position and style of the search block and the number of records block?
If possible, sample pls.

This question has accepted answers - jump to:

Answers

  • tangerinetangerine Posts: 3,348Questions: 36Answers: 394

    CSS. Your browser developer tools will tell you what styles are being applied to those elements. Either change DataTables' CSS file or override it with your own stylesheet.

  • JenstelJenstel Posts: 14Questions: 4Answers: 0

    CSS. Your browser developer tools will tell you what styles are being applied to those elements. Either change DataTables' CSS file or override it with your own stylesheet.

    Thanks, but css change style. How change position? eg how move search edit to bootom of table

  • bindridbindrid Posts: 730Questions: 0Answers: 119
  • JenstelJenstel Posts: 14Questions: 4Answers: 0

    have you looked at https://datatables.net/reference/option/dom ?
    Yep. I learned this
    But I don't yet have enough experience in javascript. So I asked for sample

  • bindridbindrid Posts: 730Questions: 0Answers: 119
    Answer ✓

    http://jsbin.com/viqafe/18/edit shows the use of the dom option to reverse the default by putting paging and page information at the top and the search and the page length drop down at the bottom.

    It uses dom:"iptlf",

    instead of the default with is dom:"lftip"

  • JenstelJenstel Posts: 14Questions: 4Answers: 0

    Thanks

  • JenstelJenstel Posts: 14Questions: 4Answers: 0

    I figured with DOM. Thanks, all worked.
    Last question: How to group columns (th) under a common name. Eg, 3 columns with the same name and a common name.

  • kthorngrenkthorngren Posts: 20,275Questions: 26Answers: 4,765
    Answer ✓

    You can have complex headers, like this example:
    https://datatables.net/examples/basic_init/complex_header.html

    But you need to have one unique TH for each Datatables column.

    Kevin

  • JenstelJenstel Posts: 14Questions: 4Answers: 0

    Thank you all very much

This discussion has been closed.