We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c6e501 commit 86a3c5fCopy full SHA for 86a3c5f
src/utils/crud/mixins/datatable-helper.js
@@ -91,10 +91,13 @@ export default {
91
let textMode = 'cropped'
92
if (field.textMode) {
93
textMode = field.textMode
94
- } else if (field.type === 'dynamic') {
95
- const refField = props.item[field.typeField]
96
- if (refField === 'file') {
97
- textMode = 'file'
+ }
+ if (field.type === 'dynamic') {
+ if (field.textModes) {
+ const refField = props.item[field.typeField]
98
+ if (field.textModes[refField]) {
99
+ textMode = field.textModes[refField]
100
101
}
102
103
columnTextModes[field.name.toLowerCase()] = textMode
0 commit comments