Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4826

Printing & page size

$
0
0

@yaxinr wrote:

I need print badges on landscape format. I add route /badges. Then on this route printing page size must be landscape.

In controllers/application.coffee i observe currentPath and add html head style {@page:size: controller.size}. In badges controller set size prop to landscape

Also i set to row class style page-break-inside: avoid And add class print-color with style print-color-adjust: exact for print color

gist

conclusion: Each route|controller can be have own page size, and this give simple printing

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles