Pode.Web icon indicating copy to clipboard operation
Pode.Web copied to clipboard

Show a hidden container

Open Clifra-Jones opened this issue 10 months ago • 1 comments

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.

Clifra-Jones avatar Apr 06 '25 05:04 Clifra-Jones

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.

Clifra-Jones avatar May 02 '25 16:05 Clifra-Jones