Map readonly
This commit is contained in:
parent
8e72f1f0fa
commit
b68940bca4
|
@ -69,6 +69,10 @@
|
||||||
return PERMISSION_OPTIONS.HIDDEN
|
return PERMISSION_OPTIONS.HIDDEN
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (column.readonly) {
|
||||||
|
return PERMISSION_OPTIONS.READONLY
|
||||||
|
}
|
||||||
|
|
||||||
return PERMISSION_OPTIONS.WRITABLE
|
return PERMISSION_OPTIONS.WRITABLE
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -146,6 +146,7 @@ export const initialise = context => {
|
||||||
schema: fieldSchema,
|
schema: fieldSchema,
|
||||||
width: fieldSchema.width || oldColumn?.width || DefaultColumnWidth,
|
width: fieldSchema.width || oldColumn?.width || DefaultColumnWidth,
|
||||||
visible: fieldSchema.visible ?? true,
|
visible: fieldSchema.visible ?? true,
|
||||||
|
readonly: fieldSchema.readonly,
|
||||||
order: fieldSchema.order ?? oldColumn?.order,
|
order: fieldSchema.order ?? oldColumn?.order,
|
||||||
primaryDisplay: field === primaryDisplay,
|
primaryDisplay: field === primaryDisplay,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue