The following example shows how to get the Custom element DataTable's HTML, add it to a new browser window and trigger printing.
Print