Skip to content

Preconfigure columnVisibility? #404

Answered by shivtorov
shivtorov asked this question in Q&A
Discussion options

You must be logged in to vote

Figured out the solution:

$table = @(
    (1..10).ForEach{ $row = [ordered]@{}; (1..10).ForEach{ $row.Add("A$_",'x'*$_) }; [PSCustomObject]$row }
)

New-HTML -Online -Temporary -ShowHTML {
    New-HTMLTable -Table $table -Buttons columnVisibility {
        New-TableColumnOption -ColumnIndex @(5..9) -Hidden $true
    }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shivtorov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant