Summary of the new feature / enhancement
I got this working, and i think it would be a good thing to add to the doc:
Notice the New-UDElement -Tag style -Content { style and then how it is used in the -ClassName.
New-UDApp -Title "title" -Pages $Pages -Navigation $Navigation -HeaderContent {
New-UDElement -Tag style -Attributes @{
type = 'text/css'
} -Content {
@'
.mc-edit-nav-text { display: none !important; }
.mc-edit-nav-icon { display: inline-flex !important; }
@media (min-width: 1420px) {
.mc-edit-nav-text { display: inline-flex !important; }
.mc-edit-nav-icon { display: none !important; }
}
'@
}
Protect-UDSection -Role @('administrator') -Children {
New-UDIconButton -Icon (New-UDIcon -Icon 'bars') -ClassName 'mc-edit-nav-icon' -OnClick {
Show-NavConfigEditor
} -Style @{ color = 'inherit' }
New-UDButton -Text 'Edit Navigation' -Icon (New-UDIcon -Icon 'bars') -ClassName 'mc-edit-nav-text' -Variant outlined -Color inherit -Size small -OnClick {
Show-NavConfigEditor
}
}
}
Proposed technical implementation details (optional)
No response
Summary of the new feature / enhancement
I got this working, and i think it would be a good thing to add to the doc:
Notice the
New-UDElement -Tag style -Content {style and then how it is used in the-ClassName.Proposed technical implementation details (optional)
No response