flipper-ui 0.29.6 → 0.29.7
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.
|
@@ -77,6 +77,7 @@ var renderEditMode = function renderEditMode(column, row, updateRow, errors) {
|
|
|
77
77
|
var type = column.type === 'number' ? 'number' : 'text';
|
|
78
78
|
var value = row[column.field];
|
|
79
79
|
return /*#__PURE__*/_react["default"].createElement(_textField["default"], {
|
|
80
|
+
options: column.options,
|
|
80
81
|
defaultValue: value,
|
|
81
82
|
type: type,
|
|
82
83
|
fullWidth: true,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IOption } from '@/core/inputs/text-field';
|
|
1
2
|
import type { CSSProperties, FunctionComponent } from 'react';
|
|
2
3
|
export type RecordUnknown = Record<string, unknown>;
|
|
3
4
|
export type StackView = RecordUnknown;
|
|
@@ -29,6 +30,7 @@ interface ColumnSpecDefault<D extends Data> extends ColumnSpecBase<RenderCellPro
|
|
|
29
30
|
type: ColumnType;
|
|
30
31
|
field: keyof D;
|
|
31
32
|
editable?: boolean;
|
|
33
|
+
options?: string | IOption[];
|
|
32
34
|
getValue?(value: unknown): string;
|
|
33
35
|
}
|
|
34
36
|
export type ActionsCellProps<D extends Data> = {
|