From 24408dd7c20a89a05c4871b9dbebdc9d84cf4deb Mon Sep 17 00:00:00 2001 From: "SPRINX0\\prochazka" Date: Tue, 22 Oct 2024 15:23:32 +0200 Subject: [PATCH] empty value testing --- packages/web/src/datagrid/DataFilterControl.svelte | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/web/src/datagrid/DataFilterControl.svelte b/packages/web/src/datagrid/DataFilterControl.svelte index 0e71504e..9a01a05b 100644 --- a/packages/web/src/datagrid/DataFilterControl.svelte +++ b/packages/web/src/datagrid/DataFilterControl.svelte @@ -93,8 +93,17 @@ ); } + if (filterBehaviour.supportEmpty) { + res.push( + { onClick: () => setFilter('EMPTY, NULL'), text: 'Is Empty Or Null' }, + { onClick: () => setFilter('NOT EMPTY NOT NULL'), text: 'Has Not Empty Value' } + ); + } + if (filterBehaviour.supportNumberLikeComparison) { res.push( + { divider: true }, + { onClick: () => openFilterWindow('>'), text: 'Greater Than...' }, { onClick: () => openFilterWindow('>='), text: 'Greater Than Or Equal To...' }, { onClick: () => openFilterWindow('<'), text: 'Less Than...' },