Skip to content

Exclude Specific Columns #215

Answered by PrzemyslawKlys
ZebulaCodes asked this question in Q&A
Discussion options

You must be logged in to vote

In the new version that I will release today or tomorrow you can do:

New-HTML {
    New-HTMLTable -DataTable $DataTable1 -ExcludeProperty "RowError", "RowState", "Table", "ItemArray", "HasErrors"
} -ShowHTML -FilePath $PSScriptRoot\Example-TableJavaScriptConditions.html -Online

You can also specify it the other way around

$DataTable1 = @(
    [PscustomObject] @{ DateTest = '2027-09-12'; DateUS = '3/31/2020'; Dates = (Get-Date).AddDays(2); BoolAsString = 'true'; BoolTest = $true; Test = 'ABC', 'DEF'; Test2 = 'Name1'; Test3 = 'Name3'; 'Test4' = 1 }
    [PscustomObject] @{ DateTest = '2021-01-12'; DateUS = '3/23/2020'; Dates = (Get-Date).AddDays(0); BoolAsString = 'false'; BoolTest = $false; T…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@ZebulaCodes
Comment options

Comment options

You must be logged in to vote
4 replies
@ZebulaCodes
Comment options

@PrzemyslawKlys
Comment options

@PrzemyslawKlys
Comment options

@ZebulaCodes
Comment options

Answer selected by PrzemyslawKlys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants