-
-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Description
Good afternoon,
I'm not sure if this was already implemented and I just didn't find the option, but here is a way to hide all the buttons from the DataTable.
Added a switch parameter to the New-HTMLTable, -HideButtons.
I was going to use the code from the DataTables site buttons().disable(), but just added the switch to only add the buttons to the $Options hash if it's $False.
$Table = Get-Process | Select-Object -First 4
New-HTML -TitleText "Testing HideButtons" -FilePath "$PSScriptRoot\Test-HideButtons.html" {
# Hide
New-HTMLSection -HeaderText "Hide Buttons" -Content {
New-HTMLTable -DataTable $Table -HideButtons
}
# Show
New-HTMLSection -HeaderText "Show Buttons" -Content {
New-HTMLTable -DataTable $Table
}
}
Metadata
Metadata
Assignees
Labels
No labels
