|
Rank: Member Groups: Member
Joined: 1/11/2012 Posts: 27
|
Hi,
Per my other request I'm getting these functions to work. As a consideration for future versions, could this property (or a similar one just called invisibleelements) accept classes as well as id's?
If I have multiple sections in a file (eg where I'm generating a repeating region in code) it would be much easier to just create and set a single class (eg class="hideInPdf"). It looks like presently we have to generate a unique ID for every one.
Thanks for listening!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
No. If you have the class, why don't you just add "display:none" to your CSS class?
|
|
Rank: Member Groups: Member
Joined: 1/11/2012 Posts: 27
|
Hi,
Thanks for this. Your recent update to allow hiding of nested items has fixed this issue now for the purposes of hiding an area of text I had. Regarding the workaround below - it's common to want a single Html file to display a certain way as a webpage (eg with certain links or warnings) and just wanting to skip those for the PDF because it isn't relevant in there. Having two versions of the Html (with different css classes) is not as nice as just putting the style tags in your 'single html file'.
Anyway, thanks for the fix!
|
|