add header before table

add header before table

mohmd42597mohmd42597 Posts: 19Questions: 6Answers: 0

Now i have data table show some data and i use same report i need to add some header before table
say :company name ,from date to date ,some data not in table before table
how i can do ?

Replies

  • kthorngrenkthorngren Posts: 21,182Questions: 26Answers: 4,925

    See if the options in this example provide what you want.

    Kevin

  • mohmd42597mohmd42597 Posts: 19Questions: 6Answers: 0

    hi @kthorngren thanks for help
    this:
    // Append a caption to the table before the DataTables initialisation
    $('#example').append('<caption style="caption-side: bottom">A fictional company\'s staff table.</caption>');

    $('#example').DataTable( {
    

    )}
    append on the footer in need on the top of header and apear in print

This discussion has been closed.