• Resolved mehran98

    (@mehran98)


    Hello
    I need Table Name show in Print ( Also maybe Table Description )
    I am using DataTables Buttons.
    How could it be ?

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For this, you could try adding a “Custom Command” on the table’s “Edit” screen:

    "buttons": [ { "extend": "print", "title": "Your table title", "message": "Your table description"} ]
    

    (Depending on whether you are showing other buttons as well, this needs to be adjusted. If this is the case, please post a link to the page with your table.

    Regards,
    Tobias

    Thread Starter mehran98

    (@mehran98)

    Hi
    I intent to put an image in head of table ( In Print ) and use this command:

    “buttons”: [ { “extend”: “print”, “title”: “<div style=” text-align:center”></div>”, “message”: “Your table description”} ]
    Now image show corretly in print ans also webview but in webview , But DataTables Buttons not show in webview.
    2. Is it possible/how to show username/nicname in this area?

    Regards,
    Meran

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I don’t know if you can use HTML code there, to be honest. If so, you would have to escape the quotation marks, like

    <div style=\"text-align:center\">
    

    and so on, with \" instead of " in the content.

    I don’t see a way to use the user name here, sorry, because this is dynamic information while the command is static. You could maybe use JS variables here though.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Table Name in Print’ is closed to new replies.