Hex Core JS
    Preparing search index...

    Type Alias SelectFieldProps<FV, T>

    SelectFieldProps: FieldProps<FV, T> & {
        blankValue?: T;
        formattedBlank?: string;
        Input?: (props: SelectFieldInputProps<T>) => JSX.Element | null;
        isLoading?: boolean;
        noClear?: boolean;
        options: SelectInputOption<T>[];
        placeholder?: string;
        refetchOptions?: () => void;
    } & Pick<
        SelectInputProps<T>,
        "pageSize" | "openSide" | "displayOption" | "footerElement" | "inline",
    > & Partial<ClassNameProps & StyleProps>

    Type Parameters

    Type Declaration

    • OptionalblankValue?: T

      The value to set the field to when cleared. Useful for fields with type X | null but have a non-null initial value since the zero-value of X is used by default in that case.

    • OptionalformattedBlank?: string

      The text to display when the value is blank.

    • OptionalInput?: (props: SelectFieldInputProps<T>) => JSX.Element | null

      The input component to use when editing.

    • OptionalisLoading?: boolean

      Indicates if the options are currently loading.

    • OptionalnoClear?: boolean

      Hides the clear button.

    • options: SelectInputOption<T>[]

      The options for the field.

    • Optionalplaceholder?: string

      Placeholder text to display when the value is blank.

    • OptionalrefetchOptions?: () => void

      A callback function that refetches options.