Sorry I thought this quesiton had been asked before, I still cannot find the original blog, but does seem the ironman site has been some-what considerably updated. Anyways here is some more forum links on how to achieve this, so you got more than one example to work off of:-
New-UDInputField -Type "textbox" -Name "accLookup" -Placeholder "Enter Name"
} -Endpoint {
param($accLookup)
# Takes the input from above and searches $Cache:AllUsers to see if we have a match.
$Objects = $Cache:AllUsers | Where-Object {($_.DisplayName -like "*$accLookup*") -or ($_.SamAccountName -like "*$accLookup*") -or ($_.name -like "*$accLookup*")}
# We found some matches in $Cache:AllUsers, lets list them out.
Set-UDElement -Id "results" -Content {
New-UDGrid -Id "$accLooku…
Hi,
I have a table, in that table each row has a button calling a Show-Udmodal.
The code for the button and Modal is added through a Select Expression on a get-ADUser, and basically i’m looking for a way to have a modal display info based on the user in the row where the button is clicked.
I’ve tried something like below, but once displayed the Header and card title is blank.
Has anyone done anything similar?
@{Name="DetailsModal";Expression={
…
Here is a working example of a modal popup inside a grid
Get-UDDashboard | Stop-UDDashboard
$pages = @()
$pages += New-UDPage -Name "home" -Content {
New-UDTable -Title "Information" -Headers @("Name", "Action") -Endpoint {
1..10 | foreach {
[pscustomobject]@{
Name = 'something'
Action = New-UDButton -Text "Click" -OnClick {
Show-UDModal -Header {New-UDHeading -Size 4 -Text 'Modal Heading'} -Content {
New-UDCard -Title 'Modal Title' -Size lar…
1 Like