Add float_greater_or_equal operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7 Reviewed By: antonk52 Differential Revision: D49230137 fbshipit-source-id: 19c97bd850b065f4c203c257ce9f0a3f33bb1eb2
This commit is contained in:
committed by
Facebook GitHub Bot
parent
467a4591b0
commit
70a46ddcc6
@@ -71,6 +71,11 @@ export const dataTablePowerSearchOperators = {
|
|||||||
key: 'float_greater_than',
|
key: 'float_greater_than',
|
||||||
valueType: 'FLOAT',
|
valueType: 'FLOAT',
|
||||||
}),
|
}),
|
||||||
|
float_greater_or_equal: () => ({
|
||||||
|
label: '>=',
|
||||||
|
key: 'float_greater_or_equal',
|
||||||
|
valueType: 'FLOAT',
|
||||||
|
}),
|
||||||
} satisfies {
|
} satisfies {
|
||||||
[key: string]: (...args: any[]) => OperatorConfig;
|
[key: string]: (...args: any[]) => OperatorConfig;
|
||||||
};
|
};
|
||||||
@@ -115,4 +120,6 @@ export const dataTablePowerSearchOperatorProcessorConfig = {
|
|||||||
value <= searchValue,
|
value <= searchValue,
|
||||||
float_greater_than: (_operator, searchValue: number, value: number) =>
|
float_greater_than: (_operator, searchValue: number, value: number) =>
|
||||||
value > searchValue,
|
value > searchValue,
|
||||||
|
float_greater_or_equal: (_operator, searchValue: number, value: number) =>
|
||||||
|
value >= searchValue,
|
||||||
} satisfies PowerSearchOperatorProcessorConfig;
|
} satisfies PowerSearchOperatorProcessorConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user