@dxos/react-ui-form
    Preparing search index...

    Type Alias ObjectPickerProps

    ObjectPickerProps: PickerBaseProps & {
        onOpenChange?: (open: boolean) => void;
        onSelect: (id: string | undefined) => void;
        placeholder?: string;
        trigger?: ReactElement;
        value?: string;
    }

    Type declaration

    • OptionalonOpenChange?: (open: boolean) => void

      Called as the popup opens and closes, so a caller can build options only while it is open.

    • onSelect: (id: string | undefined) => void

      Called with the picked id, or undefined when the selected option is picked again.

    • Optionalplaceholder?: string
    • Optionaltrigger?: ReactElement

      Replaces the selection button, e.g. a toolbar's add button that picks an object to insert.

    • Optionalvalue?: string

      The selected option's id.