@@ -13,7 +13,14 @@ import { RefFilterProps } from "../components/typings";
1313
1414type WidgetProps = Pick <
1515 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"
1724> ;
1825
1926export interface RequiredProps {
@@ -22,6 +29,7 @@ export interface RequiredProps {
2229 refOptions : ListValue ;
2330 refCaption : ListAttributeValue < string > | ListExpressionValue < string > ;
2431 searchAttrId ?: ListAttributeValue [ "id" ] ;
32+ fetchOptionsLazy : boolean ;
2533}
2634
2735type Component < P extends object > = ( props : P ) => React . ReactElement ;
@@ -61,7 +69,8 @@ function mapProps(props: WidgetProps): RequiredProps {
6169 refEntity : props . refEntity ,
6270 refOptions : props . refOptions ,
6371 refCaption : props . refCaption ,
64- searchAttrId : props . refCaption . id
72+ searchAttrId : props . refCaption . id ,
73+ fetchOptionsLazy : props . fetchOptionsLazy
6574 } ;
6675 } else {
6776 if ( ! props . refCaptionExp ) {
@@ -72,7 +81,8 @@ function mapProps(props: WidgetProps): RequiredProps {
7281 refEntity : props . refEntity ,
7382 refOptions : props . refOptions ,
7483 refCaption : props . refCaptionExp ,
75- searchAttrId : props . refSearchAttr ?. id
84+ searchAttrId : props . refSearchAttr ?. id ,
85+ fetchOptionsLazy : props . fetchOptionsLazy
7686 } ;
7787 }
7888}
0 commit comments