ISearchViewProps: Omit<
    dayjs,
    keyof {
        className: never;
        disabled: never;
        fullWidth: never;
        inputProps: never;
        InputProps: never;
        onChange: never;
        onClick: never;
        ref: never;
        style: never;
        sx: never;
        value: never;
    },
> & {
    changeSubject?: TSubject<void>;
    className?: string;
    CreateButton?: React.ComponentType<ICreateButtonProps>;
    delay?: number;
    disabled?: boolean;
    endAdornment?: React.ReactNode;
    fallback?: (error: Error) => void;
    fullWidth?: boolean;
    handler: (
        search: string,
        limit: number,
        offset: number,
        initial: boolean,
        currentRows: ISearchItem<Data>[],
    ) => ISearchItem<Data>[] | Promise<ISearchItem<Data>[]>;
    label?: string;
    limit?: number;
    mode?: keyof {
        decimal: never;
        email: never;
        none: never;
        numeric: never;
        search: never;
        tel: never;
        text: never;
        url: never;
    };
    onChange?: (value: ISearchItem<Data> | null) => void;
    onCreate?: (value: string) => void;
    onLoadEnd?: (isOk: boolean) => void;
    onLoadStart?: () => void;
    onTextChange?: (value: string) => void;
    pattern?: string;
    payload?: Payload | () => Payload;
    placeholder?: string;
    SearchInput?: React.ComponentType<ISearchInputProps>;
    SearchItem?: React.ComponentType<ISearchItemProps<Data>>;
    searchText?: string | null | () => null | string | Promise<null | string>;
    startAdornment?: React.ReactNode;
    style?: React.CSSProperties;
    sx?: dayjs<any>;
    throwError?: boolean;
    type?: keyof {
        date: string;
        email: string;
        number: string;
        search: never;
        tel: never;
        text: never;
        time: never;
        url: never;
        week: never;
    };
    value?: | ISearchItem<Data>
    | null
    | () => null | ISearchItem<Data> | Promise<null | ISearchItem<Data>>;
    variant?: "standard" | "outlined" | "filled";
}

Interface for the props of the SearchView component.

Type Parameters

  • Data extends IAnything = IAnything

    Type parameter representing the data type of search items.

  • Payload = IAnything

    Type parameter representing the payload type for async operations.