Pode.Web
Pode.Web copied to clipboard
Show a hidden container
Question
New-PodeWebContainer has the -hide parameter but how do you show a hidden container. I have this code.
New-PodeWebContainer -id 'logreport-container' -Hide -Content @(...
And I am trying to show the container on a PodeWebEvent.
New-PodeWebSelect -Name 'BatchId' -DisplayName 'Batch ID: ' -CssClass 'vertical-select' -CssStyle @{'Width' = '100px'} -ScriptBlock {
...
} | Register-PodeWebEvent -type Change -ScriptBlock {
Show-PodeWebComponent -Id 'logreport-container'
...
}
The container never shows.
Another issue I have seen is, if you try to hide a card with:
Hide-PodeWebComponent -Name 'MyCard' -Type 'Card'
The entire page renders blank.