Is it possible to have two different info for the same datatable.

Is it possible to have two different info for the same datatable.

rudrajitrudrajit Posts: 18Questions: 5Answers: 0
edited December 2020 in Free community support

I want to know if there is a way to have two different info for my datatable.
One to show total customers and one to show total pages which I will try to put inside pagination(type-full)

Replies

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

    I don't quite follow, but this example may help - it's showing how you can put any string into the info section, so you should be able to do what you want,

    Colin

  • rudrajitrudrajit Posts: 18Questions: 5Answers: 0

    hey @colin ,
    Actually what i want is something like this-

    drawCallback: function( ) {
                $(".dataTables_paginate").children(':eq(1)').after($(".dataTables_info").clone().css({'display':'inline-block', 'float': 'unset'}));
                },
    

    I have the info between pagination and one info on the other side of it.
    But the thing is I wanted the two info or the data between the pagination to be different where one on the outside would be something like-

    language: {
                info: "Customer _START_-_END_ of _MAX_"
            },
    

    and the one inside pagination to be-

    language: {
                info: "Page _PAGE_ of _PAGES_"
            },
    
This discussion has been closed.