You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using New-PodeWebTable and specifying a ClickScriptBlock (and DataColumn), the code in the ClickScriptBlock is never triggered when clicking a table row.
Steps To Reproduce
New-PodeWebTable -Name 'Services' -Datacolumn Name -ClickScriptBlock {
Write-Host "Click"
Show-PodeWebToast -Message "$($WebEvent.Data.Value)"
} -ScriptBlock {
foreach ($svc in (Get-Service)) {
[ordered]@{
Name = $svc.Name
Status = "$($svc.Status)"
}
}
}
Expected Behavior
"Click" should appear in the Powershell console and WebToast should appear on web page when a table row is clicked.
Platform
OS: Windows
Browser: Edge
Versions:
Pode: 2.10.1
Pode.Web: 1.0.0
PowerShell: 5.1
Additional Context
Worked fine in 0.83
The text was updated successfully, but these errors were encountered:
Describe the Bug
When using New-PodeWebTable and specifying a ClickScriptBlock (and DataColumn), the code in the ClickScriptBlock is never triggered when clicking a table row.
Steps To Reproduce
New-PodeWebTable -Name 'Services' -Datacolumn Name -ClickScriptBlock {
Write-Host "Click"
Show-PodeWebToast -Message "$($WebEvent.Data.Value)"
} -ScriptBlock {
foreach ($svc in (Get-Service)) {
[ordered]@{
Name = $svc.Name
Status = "$($svc.Status)"
}
}
}
Expected Behavior
"Click" should appear in the Powershell console and WebToast should appear on web page when a table row is clicked.
Platform
Additional Context
Worked fine in 0.83
The text was updated successfully, but these errors were encountered: