- Picker(props): ReactNode
Parameters
props: {
cancelText?: ReactNode;
children?: ((items, actions) => ReactNode);
closeOnMaskClick?: boolean;
columns: PickerColumn[] | ((value) => PickerColumn[]);
confirmText?: ReactNode;
defaultValue?: PickerValue[];
loading?: boolean;
loadingContent?: ReactNode;
mouseWheel?: boolean;
onCancel?: (() => void);
onClose?: (() => void);
onConfirm?: ((value, extend) => void);
onSelect?: ((value, extend) => void);
popupClassName?: string;
popupStyle?: CSSProperties;
renderLabel?: ((item) => ReactNode);
title?: ReactNode;
value?: PickerValue[];
visible?: boolean;
} & Pick<PopupProps, "onClick" | "forceRender" | "afterClose" | "destroyOnClose" | "getContainer" | "afterShow" | "stopPropagation"> & {
className?: string;
style?: CSSProperties & Partial<Record<"--header-button-font-size" | "--title-font-size" | "--item-font-size" | "--item-height", string>>;
tabIndex?: number;
} & AriaAttributes & RefAttributes<PickerActions>
Returns ReactNode
Properties
Readonly $$typeof
$$typeof: symbol
Optional displayName
displayName?: string
prompt
prompt: ((props) => Promise<PickerValue[] | null>) Type declaration
- (props): Promise<PickerValue[] | null>
Returns Promise<PickerValue[] | null>
Readonly type
type: ForwardRefExoticComponent<{ cancelText?: ReactNode; children?: ((items,
actions) => ReactNode); closeOnMaskClick?: boolean; columns: PickerColumn[] | ((value) => PickerColumn[]); confirmText?: ReactNode; defaultValue?: PickerValue[]; loading?: boolean; loadingContent?: ReactNode; mouseWheel?: boolean; onCancel?: (() => void); onClose?: (() => void); onConfirm?: ((value,
extend) => void); onSelect?: ((value,
extend) => void); popupClassName?: string; popupStyle?: CSSProperties; renderLabel?: ((item) => ReactNode); title?: ReactNode; value?: PickerValue[]; visible?: boolean; } & Pick<PopupProps, "onClick" | "forceRender" | "afterClose" | "destroyOnClose" | "getContainer" | "afterShow" | "stopPropagation"> & { className?: string; style?: CSSProperties & Partial<Record<"--header-button-font-size" | "--title-font-size" | "--item-font-size" | "--item-height", string>>; tabIndex?: number; } & AriaAttributes & RefAttributes<PickerActions>>
Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.