@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/ui",
3
- "version": "0.3.312",
3
+ "version": "0.3.313",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -1,5 +1,4 @@
1
1
  import React, { useEffect, useState, useRef, isValidElement, } from 'react';
2
- import { View, } from 'react-native';
3
2
  import {
4
3
  Box,
5
4
  Column,
@@ -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}