Function useSearchModalTyped
- useSearchModalTyped<FilterData, RowData, Payload, Field>(params): {
close: (() => Promise<boolean>);
open: boolean;
pickData: ((param?: Param) => void);
render: (() => Element);
} Type Parameters
- FilterData extends {} = any
- RowData extends IRowData = any
- Payload extends unknown = any
- Field extends IField<any, any, Field> = TypedField<FilterData, Payload>
Returns {
close: (() => Promise<boolean>);
open: boolean;
pickData: ((param?: Param) => void);
render: (() => Element);
}
Readonly
close: (() => Promise<boolean>)
- (): Promise<boolean>
Returns Promise<boolean>
open: boolean
pickData: ((param?: Param) => void)
- (param?): void
Returns void
render: (() => Element)
- (): Element
Returns Element
Hook for using a search modal with strong typed parameters.