I am trying to have an UDTableColumn without a title, but when I remove the optional -Title
parameter the mandatory -Property
comes in place.
New-UDTableColumn -Property Delete -Title Action -Render {
$Item = ConvertFrom-Json $Body
#delete button logic
}
PS: as you can see in this example the parameter -Property
doesnt make sense to be defined as it is a rendered property (calculated with some other object properties like ID …).
I think it would make sense to have 2 ParameterSets for this command:
- normal columns
- (mendatory) Property
- (Optional) Title
- rendered columns
- (Optional) Title
- (mendatory) Render