Replies: 3 comments 2 replies
-
|
I am not sure what you are asking for? Whether you can hide columns in tables? $DataTable1 = @(
[PSCustomObject] @{ Test = 'Name'; Test2 = 'Name2'; Test3 = 'Name3' }
[PSCustomObject] @{ Test = 'Name'; Test2 = 'Name2'; Test3 = 'Name4' }
[PSCustomObject] @{ Test = 'Name'; Test2 = 'Name2'; Test3 = 'Name5' }
[PSCustomObject] @{ Test = 'Name'; Test2 = 'Name2'; Test3 = 'Name6' }
)
$DataTable1 | Out-HtmlView -Online -FilePath $PSScriptRoot\Example7_08_OutHTMlView.html -InvokeHTMLTags -SearchPane -Title 'Test' -DataStore JavaScript {
New-TableColumnOption -ColumnIndex 1,2 -Hidden $true
New-TableColumnOption -ColumnIndex 3 -Searchable $false
}New-TableColumnOption can hide things and do other stuff |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Not per default :-) only as a fancy optional thing :-9 Is it possible to deactivate red market scales? Best regards |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Is it possible to deactivate red market scales? |
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



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I love PSWriteHTML and the easy way to create HTML pages.
However, from my point of view, tables alone often look confusing.
The possibility of linking graphs and tables gave me an idea.
The function "Get-HTMLChart-Section" creates charts for a list of properties.
Certainly not the "cleanest" code, but it is functional :-)
For linking charts and tables I need helper properties. Only strings ca be linked...right?
Is it possible to "hide" individual attributes of a row?
The same functionality as with responsive display of tables.
In my example "Enabled-String, DateFrom-Day, DateTo-Year and Date-Test-Month"
Like that...

Best regards
Dominik
`Import-Module .\PSWriteHTML.psd1 -Force
#Define data
$DataTable = @(
[PSCustomObject] @{
Name = 'My Object 1'
Enabled = $true
Time = 1
TT = 5
AA = 1
DateFrom = (Get-Date).AddDays(1)
DateTo = (Get-Date)
DateTest = (Get-Date).AddDays(0)
}
[PSCustomObject] @{
Name = 'My Object 2'
Enabled = $true
Time = "r"
TT = "aGDFGDFG"
AA = "4"
DateFrom = (Get-Date).AddDays(2)
DateTo = (Get-Date).AddDays(3)
DateTest = (Get-Date).AddDays(32)
}
[PSCustomObject] @{
Name = 'My Object 3'
Enabled = $true
Time = "a"
TT = "aDFGDFGsd"
AA = "daDFGDFGs"
DateFrom = (Get-Date).AddDays(4)
DateTo = (Get-Date).AddDays(71)
DateTest = (Get-Date).AddDays(64)
}
[PSCustomObject] @{
Name = 'My Object 3'
Enabled = $true
Time = "a"
TT = "aDFGDFGsd"
AA = "daDFGDFGs"
DateFrom = (Get-Date).AddDays(5)
DateTo = (Get-Date).AddDays(7)
DateTest = (Get-Date).AddDays(64)
}
[PSCustomObject] @{
Name = 'My Object 3'
Enabled = $true
Time = "a"
TT = "aDFGDdddFGsd"
AA = "daDFvvvGDFGs"
DateFrom = (Get-Date).AddDays(6)
DateTo = (Get-Date).AddDays(7)
DateTest = (Get-Date).AddDays(64)
}
[PSCustomObject] @{
Name = 'My Object 3'
Enabled = $true
Time = "aaa"
TT = "aDFGDddFGsd"
AA = "daDFGdasdDFGs"
DateFrom = (Get-Date).AddDays(7)
DateTo = (Get-Date).AddDays(117)
DateTest = (Get-Date).AddDays(64)
}
[PSCustomObject] @{
Name = 'My Object 3'
Enabled = $true
Time = "asada"
TT = "aDFGsadDFGsd"
AA = "daDFdasdGDFGs"
DateFrom = (Get-Date).AddDays(9)
DateTo = (Get-Date).AddDays(7)
DateTest = (Get-Date).AddDays(64)
}
[PSCustomObject] @{
Name = 'My Object 3'
Enabled = $false
Time = "aas"
TT = "aDFsssGDFGsd"
AA = "daDsadFGDFGs"
DateFrom = (Get-Date).AddDays(9)
DateTo = (Get-Date).AddDays(7)
DateTest = (Get-Date).AddDays(64)
}
)
function Get-HTMLChart-Section {
param(
[Parameter(Position = 0, mandatory = $true)]
[Object] $DataTable,
[Parameter(Position = 0, mandatory = $true)]
[string] $DataTableID,
[Parameter(Position = 0, mandatory = $true)]
$PropertyList,
[int] $Min = 0,
[int] $Max = [int]::PositiveInfinity
)
}
New-HTML {
New-HTMLTableOption -DataStore JavaScript
$PropertyList = @("Enabled", "DateFrom", "DateTo", "DateTest")
Get-HTMLChart-Section -DataTable $DataTable -DataTableID $DataTable.GetHashCode() -PropertyList $PropertyList -Min 1 -Max 15
New-HTMLTable -DataTable $DataTable -DataTableID $DataTable.GetHashCode()
} -ShowHTML -FilePath $PSScriptRoot\Example-ChartsWithTablesDonut.html -Online`
Beta Was this translation helpful? Give feedback.
All reactions