File tree 5 files changed +15
-0
lines changed
5 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ export default function Filters() {
48
48
}
49
49
}
50
50
} , [ userDoc . state , tableState ?. tablePath ] ) ;
51
+
51
52
const filterColumns = _sortBy ( Object . values ( tableState ! . columns ) , "index" )
52
53
. filter ( ( c ) => getFieldProp ( "filter" , c . type ) )
53
54
. map ( ( c ) => ( {
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ export const filterOperators: IFilterOperator[] = [
5
5
label : "on" ,
6
6
value : "==" ,
7
7
} ,
8
+ {
9
+ value : "!=" ,
10
+ label : "not equal to" ,
11
+ } ,
8
12
{
9
13
label : "before" ,
10
14
value : "<" ,
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ export const filterOperators: IFilterOperator[] = [
5
5
label : "at" ,
6
6
value : "==" ,
7
7
} ,
8
+ {
9
+ value : "!=" ,
10
+ label : "not equal to" ,
11
+ } ,
8
12
{
9
13
label : "before" ,
10
14
value : "<" ,
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ export const filterOperators: IFilterOperator[] = [
5
5
value : "==" ,
6
6
label : "is equal to" ,
7
7
} ,
8
+ {
9
+ value : "!=" ,
10
+ label : "not equal to" ,
11
+ } ,
8
12
{
9
13
value : "array-contains" ,
10
14
label : "contains" ,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import SingleSelectIcon from "assets/icons/SingleSelect";
6
6
import BasicCell from "../_BasicCell/BasicCellNull" ;
7
7
import InlineCell from "./InlineCell" ;
8
8
import NullEditor from "components/Table/editors/NullEditor" ;
9
+ import { filterOperators } from "../ShortText/Filter" ;
9
10
10
11
const PopoverCell = lazy (
11
12
( ) =>
@@ -38,6 +39,7 @@ export const config: IFieldConfig = {
38
39
TableEditor : NullEditor as any ,
39
40
SideDrawerField,
40
41
settings : Settings ,
42
+ filter : { operators : filterOperators } ,
41
43
requireConfiguration : true ,
42
44
} ;
43
45
export default config ;
You can’t perform that action at this time.
0 commit comments