Add int_greater_or_equal operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7 Reviewed By: lblasa, antonk52 Differential Revision: D49230132 fbshipit-source-id: ac0e32e4d83d45d18a03dc2b95c4d0d546f86372
This commit is contained in:
committed by
Facebook GitHub Bot
parent
df37187b6b
commit
18ae536dc3
@@ -51,6 +51,11 @@ export const dataTablePowerSearchOperators = {
|
|||||||
key: 'int_greater_than',
|
key: 'int_greater_than',
|
||||||
valueType: 'INTEGER',
|
valueType: 'INTEGER',
|
||||||
}),
|
}),
|
||||||
|
int_greater_or_equal: () => ({
|
||||||
|
label: '>=',
|
||||||
|
key: 'int_greater_or_equal',
|
||||||
|
valueType: 'INTEGER',
|
||||||
|
}),
|
||||||
} satisfies {
|
} satisfies {
|
||||||
[key: string]: (...args: any[]) => OperatorConfig;
|
[key: string]: (...args: any[]) => OperatorConfig;
|
||||||
};
|
};
|
||||||
@@ -87,4 +92,6 @@ export const dataTablePowerSearchOperatorProcessorConfig = {
|
|||||||
),
|
),
|
||||||
int_greater_than: (_operator, searchValue: number, value: number) =>
|
int_greater_than: (_operator, searchValue: number, value: number) =>
|
||||||
value > searchValue,
|
value > searchValue,
|
||||||
|
int_greater_or_equal: (_operator, searchValue: number, value: number) =>
|
||||||
|
value >= searchValue,
|
||||||
} satisfies PowerSearchOperatorProcessorConfig;
|
} satisfies PowerSearchOperatorProcessorConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user