EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
November 14, 2024, 01:20:32 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
General Discussion
>
Print using printJS plugin
Pages: [
1
]
« previous
next »
Print
Author
Topic: Print using printJS plugin (Read 7756 times)
jega
Full Member
Posts: 199
Print using printJS plugin
«
on:
July 16, 2019, 03:21:57 PM »
Trying to find a way to print an easyui dialog, or any part inside an div/form.
Found printJS plugin, but it doesn't print the easyui css
Any hit to get it to work
https://printjs.crabbly.com/
Jesper
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Print using printJS plugin
«
Reply #1 on:
July 19, 2019, 06:47:07 PM »
Please pass the 'css' parameter to the printJS function.
Code:
printJS({
printable: 'dlg',
type: 'html',
css: '../../themes/default/easyui.css'
})
Logged
jega
Full Member
Posts: 199
Re: Print using printJS plugin
«
Reply #2 on:
July 22, 2019, 12:06:43 AM »
Hi stworthy
Thanks for help. Now it's better, BUT missing checkbox marks, tagbox tags and linkbutton group color.
Solution for most of it was now to choose Additional settings" "Option" on print dialog, and use background graphic.
Only one thing dosen't work. Have a button group with this css
<style type="text/css">
.l-btn-selected{
background: #4cae4c;
color: #fff;
}
}
</style>
It makes active button green. On print it still is grey. Have tried different things with targetStyles, but with no luck
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...