EvotecIT / PSWriteHTML

PSWriteHTML is PowerShell Module to generate beautiful HTML reports, pages, emails without any knowledge of HTML, CSS or JavaScript. To get started basics PowerShell knowledge is required.
MIT License
842 stars 107 forks source link

Font size of Content Header Text and -DataTable #116

Closed varunaggar closed 3 years ago

varunaggar commented 4 years ago

Hi all,

Is it possible to change the font size of the HeaderText in New-HTMLContent and similarly the font size of input object of -DataTable parameter ?

any thoughts would be of great help.

Varun

PrzemyslawKlys commented 4 years ago

I would say we need to expand New-HTMLSection (New-HTMLContent is an alias). Work is required to build it up. It could probably be expanded with icons as well.

xlrod commented 4 years ago

Added a parameter for $HeaderTextSize and was also playing around with the text shadow, not sure if you'd like to add it.

image image image

New-HTMLSection -HeaderText "Title goes here" -HeaderTextSize 12 -HeaderTextShadowOffsetX -2 -HeaderTextShadowOffsetY 1 -HeaderTextShadowBlur 20 -Content {...}

image

PrzemyslawKlys commented 4 years ago

Sure, more features and options the better ;-) We could also play with text-transform and add validateset different options. I believe this could be useful. Also if there is font size, there should be option for font name.

PrzemyslawKlys commented 4 years ago

Text-Transform possible options:

PrzemyslawKlys commented 4 years ago

@xlrod did you ever submit your changes?

xlrod commented 4 years ago

@PrzemyslawKlys No, I didn't submit the changes as they were still not fully functional. I'll get the latest version and start working from there again.

tomerikko commented 3 years ago

would love to see that implemented.

BTW, new user to your module @PrzemyslawKlys - its awesome!!!! thanks for all the hard work you put into this.

PrzemyslawKlys commented 3 years ago

@tomerikko HeaderTextSize is implemented in 0.0.133

The rest of the settings are not, but I was thinking on totally rebuilding section with support for icons and better customization options. It's too bad @xlrod didn't submit it back then :-)

tomerikko commented 3 years ago

sweet, i am on 0.0.132, so will push an upgrade and check again. Thanks!

PrzemyslawKlys commented 3 years ago

Its not yet out as i am fixing outstanding issues.