How to access variable returned from script to html tag
-
This post is deleted!
-
This post is deleted!
-
@reshmajacob93 this is not possible by design, because at the time your js inside the
script
tag runs the template engine has already run. I think you should be able to reproduce the same by always rendering the content inside the{{#if shouldAddPageBreak}}
but with adisplay: none
and then in your script after your height condition is met you can change the display to 'block' to make it visible, or you can also just create such content with client side js.
-
This post is deleted!
-
-
This post is deleted!
-
Can you please reply sorry for asking i don't have much knowledge in css
-
the 3.3.0 likely has a very different version of chrome that did not support the page break in this way, if it works on jsreportonline it means you should try it with jsreport 3.13.0 locally to match the same versions.
-
Instead of updating new version is there any other alternative solution? Because our clients where using the reports
-
unfortunately, it seems there is no workaround for older versions. i think you can split the content in different tables and use a normal div for a page break https://playground.jsreport.net/w/anon/I2fIFf0~, however it is probably not something very efficiently to do for a more complex template