@onehat/ui 0.3.312 → 0.3.313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -126,6 +126,9 @@ function GridRow(props) {
|
|
|
126
126
|
if (type.match(/(Tag|TagEditor)$/)) {
|
|
127
127
|
elementProps.isViewOnly = true; // TODO: this won't work for InlineGridEditor, bc that Grid can't use isViewOnly when actually editing
|
|
128
128
|
}
|
|
129
|
+
if (config.getCellProps) {
|
|
130
|
+
_.assign(elementProps, config.getCellProps(item));
|
|
131
|
+
}
|
|
129
132
|
return <Element
|
|
130
133
|
{...testProps('cell-' + config.fieldName)}
|
|
131
134
|
value={value}
|
|
@@ -167,6 +170,9 @@ function GridRow(props) {
|
|
|
167
170
|
if (UiGlobals.mode === UI_MODE_WEB) {
|
|
168
171
|
elementProps.textOverflow = 'ellipsis';
|
|
169
172
|
}
|
|
173
|
+
if (config.getCellProps) {
|
|
174
|
+
_.assign(elementProps, config.getCellProps(item));
|
|
175
|
+
}
|
|
170
176
|
return <Text
|
|
171
177
|
{...testProps('cell-' + config.fieldName)}
|
|
172
178
|
key={key}
|