Print in cakephp3

Hello.
Is it possible to print the resulting result in a printer?
I mean, create a print button so that the user can print the data requested

Many folks convert to pdf first, but javascript has a window.print(); function.

If using javascript, some trial and error will be required to format everything.