print time not showing

print time not showing

mardonimardoni Posts: 2Questions: 1Answers: 0
edited April 2022 in Free community support

buttons: [
{
extend: "print",
text: '<i class="fas fa-print"></i> Print',
className: "btn btn-success btn-sm",
},
],

Answers

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

    Have you include the JS files and added the 'B' for dom? If so, we're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • mardonimardoni Posts: 2Questions: 1Answers: 0

    it's not about the button but the print result doesn't show the datetime in the header.
    with js
    {
    dom: "<'row'<'col order-first'l><'col'f><'col order-last'B>>tip",
    buttons: [
    {
    extend: "print",
    text: '<i class="fas fa-print"></i> Print',
    className: "btn btn-success btn-sm",
    },
    ],
    }

    but I don't see the time when I print it.

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

    Its hard to say what the problem is without seeing the problem. Please provide a link to your page or a test case replicating the issue so we can help debug.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

Sign In or Register to comment.