title in datatable to the right of button

title in datatable to the right of button

silenssilens Posts: 101Questions: 40Answers: 0

I would like to be able to put a title to the table in the same row as the pdf, print, etc. buttons.

Answers

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

    Hi @silens ,

    If you look at my response to this thread, you can see me adding elements into the dom structure. You can do this with a title too.

    Cheers,

    Colin

  • silenssilens Posts: 101Questions: 40Answers: 0

    Thank you very much, the problem that arises is that I need the text of the div to appear in the center. Between the buttons and the search. When I try to center with css it makes me a line break. As if I did not have space.

    Buton                                                  Text
    
                                                                                                           Search
    
     dom: 'B<"toolbar">lfrtip',  
    
    fnInitComplete: function(){
               $('div.toolbar').html('Custom tool bar!');
             },
        
    
  • silenssilens Posts: 101Questions: 40Answers: 0

    watching a bit in the forum I have copied this code and it works for me as I want, I do not know if it is correct. Thank you

     dom: "<'row' <'col-sm-4'B> <'col-sm-4'<'toolbar'>> <'col-sm-4'f> >" +
              "<'row'<'col-sm-12'tr>>" +
              "<'row'<'col-sm-5'i><'col-sm-7'p>>",
    
This discussion has been closed.