Add support for overriding column widths in grid block
This commit is contained in:
parent
84b4faf0eb
commit
0387e226fa
|
@ -85,6 +85,7 @@
|
|||
columns?.forEach(column => {
|
||||
overrides[column.field] = {
|
||||
displayName: column.label,
|
||||
width: column.width,
|
||||
}
|
||||
})
|
||||
return overrides
|
||||
|
|
|
@ -194,7 +194,7 @@ export const initialise = context => {
|
|||
name: field,
|
||||
label: fieldSchema.displayName || field,
|
||||
schema: fieldSchema,
|
||||
width: fieldSchema.width || oldColumn?.width || DefaultColumnWidth,
|
||||
width: oldColumn?.width || fieldSchema.width || DefaultColumnWidth,
|
||||
visible: fieldSchema.visible ?? true,
|
||||
order: fieldSchema.order ?? oldColumn?.order,
|
||||
primaryDisplay: field === primaryDisplay,
|
||||
|
|
Loading…
Reference in New Issue