API : fnPrint documentation wrong
API : fnPrint documentation wrong
![nlz242](https://secure.gravatar.com/avatar/bed02af9dabc5bf448b646ca9cf26e62/?default=https%3A%2F%2Fvanillicon.com%2Fbed02af9dabc5bf448b646ca9cf26e62_200.png&rating=g&size=120)
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.)
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.)
This discussion has been closed.
Replies
I really need to update TableTools to use JSDoc comments at some point. Planning on doing it alongside TableTools v3.
Regards,
Allan