Transformers: Support adding the row index using calculate field transformer (#65148)

This commit is contained in:
Ryan McKinley
2023-03-22 11:10:22 -07:00
committed by GitHub
parent f96637b5fc
commit 732f3da33f
4 changed files with 50 additions and 10 deletions

View File

@@ -37,6 +37,7 @@ interface CalculateFieldTransformerEditorState {
const calculationModes = [
{ value: CalculateFieldMode.BinaryOperation, label: 'Binary operation' },
{ value: CalculateFieldMode.ReduceRow, label: 'Reduce row' },
{ value: CalculateFieldMode.Index, label: 'Row index' },
];
const okTypes = new Set<FieldType>([FieldType.time, FieldType.number, FieldType.string]);