How to set the pagination on the top of the datatable and how to change the tr style?

How to set the pagination on the top of the datatable and how to change the tr style?

sdiabsdiab Posts: 4Questions: 2Answers: 0

1- I need to move the pagination from the bottom of the Datatable to the top of the table near the search input.
2- I am using the "columns": [ { "data": "STATUS_ID"}] to fetch the Json into the datatable. how can I add style value inside he element <tr> ?

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599
    1. You can use dom for that.
    2. The can you createdRow or columns.createdCell - there are examples on those pages,

    Colin

  • sdiabsdiab Posts: 4Questions: 2Answers: 0

    Thank you colin for your feedback.
    Point first point I understand it and It works like I want. but also need to know how to insert style for the row example:.
    "dom": "<<'row'<'col-sm-10'l><'col-sm-2'f>>"+"<'row'<'col-sm-9'><'col-sm-3'p>>"+"<'row'<'col-sm-10'><i>>",

    I Need to insert style:text-align:Right; inside the col-sm-9.

    Point two I will try later since now It works like I want.

This discussion has been closed.