Product: PowerShell Universal
Version: 3.3.5
Hi,
can anybody help with: how to style the border color for New-UDDataGrid?
I Like to change only the color for all borders.
Product: PowerShell Universal
Version: 3.3.5
Hi,
can anybody help with: how to style the border color for New-UDDataGrid?
I Like to change only the color for all borders.
If i apply a style like this:
$DataGridStyle = '.MuiDataGrid-cell { border-color: #F17100;};.MuiDataGrid-root { border-color: #F17100;};.MuiDataGrid-columnHeaders { background-color: gray;}'
New-UDStyle -Style $DataGridStyle -Content {
New-UDDataGrid -LoadRows {
Out-UDSqlDataGrid -Context $EventData -SqlInstance "localhost" -Database "[PSU]" -Table $Tabelle
} -Columns $ColHashtable -AutoHeight -Pagination -RowsPerPageOptions 5,10,20,50,100,200,500 -CheckboxSelectionVisibleOnly -Density compact
}
i get:
But i cant syte this container
any help?
I’d recommend using a custom theme.
$Theme = @{
overrides = @{
MuiDataGrid = @{
root = @{
'border-color' = '#F17100'
}
cell = @{
'border-color' = '#F17100'
}
columnHeaders = @{
'background-color' = 'gray'
}
}
}
}
New-UDDashboard -Theme $Theme -Content {
New-UDDataGrid -LoadRows {
Out-UDSqlDataGrid -Context $EventData -SqlInstance "localhost" -Database "[PSU]" -Table $Tabelle
} -Columns $ColHashtable -AutoHeight -Pagination -RowsPerPageOptions 5,10,20,50,100,200,500 -CheckboxSelectionVisibleOnly -Density compact
}
Thanks a lot
at the end i have:
overrides = @{
MuiDataGrid = @{
root = @{
'border-color' = '#F17100'
}
cell = @{
'border-color' = '#F17100'
}
columnHeaders = @{
'background-color' = 'gray'
'border-bottom' = '1px solid #F17100'
}
columnSeparator = @{
'color' = '#F17100'
}
footerContainer = @{
'border-top' = '1px solid #F17100'
}
}
}