API : fnPrint documentation wrong

API : fnPrint documentation wrong

nlz242nlz242 Posts: 17Questions: 0Answers: 0
edited February 2013 in TableTools
At http://datatables.net/extras/tabletools/api
Under "fnPrint" we can read:
2. object - Configuration for the print view (parameters are bShowAll - show all rows in the table if true, sInfo, information message displayed as an overlay, and sInfo, HTML string to show that the top of the document - will be included in the printed document.

Obviously, the configuration object can't have two "sInfo" property.
It should read "sMessage" instead of "sInfo".

object - Configuration for the print view (parameters are bShowAll - show all rows in the table if true, sInfo, information message displayed as an overlay, and sMessage, HTML string to show that the top of the document - will be included in the printed document.

Suggestion, remove some commas and add some periods. Clearer.

object - Configuration for the print view (parameters are: bShowAll - show all rows in the table if true. sInfo - information message displayed as an overlay. sMessage - HTML string to show that the top of the document - will be included in the printed document.)

Replies

  • allanallan Posts: 61,919Questions: 1Answers: 10,151 Site admin
    Thanks for flagging that up. Fixed now.

    I really need to update TableTools to use JSDoc comments at some point. Planning on doing it alongside TableTools v3.

    Regards,
    Allan
This discussion has been closed.