|
Re: Printing AbstractHtmlField/AbstractImageField content [message #1834086 is a reply to message #1834062] |
Mon, 02 November 2020 09:45 |
|
Hi Krzysztof
I can't think of a simple method to do that out-of-the-box. Since printing happens in the context of the browser (and not the Java UI server) you need to have some kind of a custom widget (button) which triggers window.print(). You could use a @ModelVariant to create an instance of a PrintButton.js (extends Button.js) in the UI which does that.
In order to print out only a specific field, you could work with CSS classes and media queries. Give that field that must be on the printout a specific CSS class like "myapp-printable", and in your CSS/LESS file make everything invisible for "print" _except_ elements which have that CSS class.
Cheers,
André
Eclipse Scout Homepage | Documentation | GitHub
|
|
|
Powered by
FUDForum. Page generated in 0.02958 seconds