Updates table font size to 14 but now buttons are tiny #420
Replies: 1 comment
-
You can do something like this New-HTML -Online -TitleText "Users With Devices" {
Add-HTMLStyle -Placement Header -Css @{
".dt-button" = @{
'background-color' = '#f5f5f5;'
'font-size' = '30px !important;'
}
}
New-HTMLHeader {
New-HTMLSpanStyle -Alignment center {
New-HTMLHeading -Heading h1 -HeadingText "International Users and Devices"
}
}
# New-HTMLTableOption -DataStore JavaScript -DateTimeFormat 'MMM-dd-yyyy'
$newHTMLTableSplat = @{
DataTable = $DataTable1
Title = "Int Users And Devices"
PagingLength = 50
WordBreak = 'break-word'
AutoSize = $true
Style = 'display'
Buttons = 'copyHtml5', 'excelHtml5', 'csvHtml5', 'pdfHtml5', 'columnVisibility', 'searchBuilder'
EnableColumnReorder = $true
SearchRegularExpression = $true
PreContent = {
New-HTMLSpanStyle -Alignment center {
New-HTMLHeading -Heading h2 -HeadingText "Graph Data Export"
}
}
Filtering = $true
HTML = {
New-HTMLTableStyle -FontSize 14
New-HTMLTableButtonExcel
New-HTMLTableColumnOption -ColumnIndex 2 -Hidden $true
New-HTMLTableColumnOption -AllColumns -Width 100
}
}
New-HTMLTable @newHTMLTableSplat
} -FilePath $PSScriptRoot\IntAzureReportHTML.html -ShowHTML |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Basically the title, if I don't update the font size on the table the table itself comes out really small to the point where it kind of hurts to look at. I've been playing around with the New-Htmltablestyle command and can't find a way to make everything scale uniformly.
Any input is appreciated!!
Code block above. I just need a simple report I can send around. The report contains 20K+ rows.
Beta Was this translation helpful? Give feedback.
All reactions