@@ -13,7 +13,14 @@ import { RefFilterProps } from "../components/typings";
13
13
14
14
type WidgetProps = Pick <
15
15
DatagridDropdownFilterContainerProps ,
16
- "name" | "refEntity" | "refOptions" | "refCaption" | "refCaptionExp" | "refCaptionSource" | "refSearchAttr"
16
+ | "name"
17
+ | "refEntity"
18
+ | "refOptions"
19
+ | "refCaption"
20
+ | "refCaptionExp"
21
+ | "refCaptionSource"
22
+ | "refSearchAttr"
23
+ | "fetchOptionsLazy"
17
24
> ;
18
25
19
26
export interface RequiredProps {
@@ -22,6 +29,7 @@ export interface RequiredProps {
22
29
refOptions : ListValue ;
23
30
refCaption : ListAttributeValue < string > | ListExpressionValue < string > ;
24
31
searchAttrId ?: ListAttributeValue [ "id" ] ;
32
+ fetchOptionsLazy : boolean ;
25
33
}
26
34
27
35
type Component < P extends object > = ( props : P ) => React . ReactElement ;
@@ -61,7 +69,8 @@ function mapProps(props: WidgetProps): RequiredProps {
61
69
refEntity : props . refEntity ,
62
70
refOptions : props . refOptions ,
63
71
refCaption : props . refCaption ,
64
- searchAttrId : props . refCaption . id
72
+ searchAttrId : props . refCaption . id ,
73
+ fetchOptionsLazy : props . fetchOptionsLazy
65
74
} ;
66
75
} else {
67
76
if ( ! props . refCaptionExp ) {
@@ -72,7 +81,8 @@ function mapProps(props: WidgetProps): RequiredProps {
72
81
refEntity : props . refEntity ,
73
82
refOptions : props . refOptions ,
74
83
refCaption : props . refCaptionExp ,
75
- searchAttrId : props . refSearchAttr ?. id
84
+ searchAttrId : props . refSearchAttr ?. id ,
85
+ fetchOptionsLazy : props . fetchOptionsLazy
76
86
} ;
77
87
}
78
88
}
0 commit comments