Marco
September 20, 2025, 11:48am
1
Hello everyone,
I’m currently trying to figure out how to use buttons from the header content in such a way that something is displayed in the content area. In my case, I want to create an app overview for different sections. Unfortunately, I’m having a bit of trouble implementing this.
Can I also adjust the position of the buttons, for example, center them?
New-UDApp -Title "Zentrale App-Übersicht" -Theme $Theme -HideUserName -HeaderContent {
New-UDButton -Id "btnUser" -Icon (New-UDIcon -Icon Users -Size '1x') -Text 'User'
New-UDButton -Id "btnGroups" -Icon (New-UDIcon -Icon object-group -Size '1x') -Text 'Groups'
} -Content {
}
I would appreciate any feedback, tips, or a more efficient solution.
krisr
September 22, 2025, 6:46am
2
I dont know what did you set in your theme definition but those button are centered
Marco
September 22, 2025, 6:58am
3
Hi @krisr ,
i am currently using the theme “IC_Orange_PPL”. So it depends on the theme i guess?
krisr
September 22, 2025, 7:02am
4
and if you are talking about buttons not being centered vertically this might help:
New-UDApp -Title "Zentrale App-Übersicht" -Theme $Theme -HideUserName -HeaderContent {
New-UDStack -Children {
New-UDButton -Id "btnUser" -Icon (New-UDIcon -Icon Users -Size '1x') -Text 'User'
New-UDButton -Id "btnGroups" -Icon (New-UDIcon -Icon object-group -Size '1x') -Text 'Groups'
New-UDButton -Id "btnGroups2" -Icon (New-UDIcon -Icon object-group -Size '1x') -Text 'Groups2'
} -JustifyContent space-evenly -FullWidth
} -Content {
}
Marco
September 22, 2025, 7:09am
5
Thats what i was looking for. Thank you