Function useOne

  • Type Parameters

    • Data extends unknown = any

      The type of data.

    • Payload = any

      The type of the payload.

    • Field = IField<Data, Payload>

      The type of the field.

    Parameters

    • params: IParams<Data, Payload, Field>

      The parameters object.

      • fields

        The fields array.

      • large

        Indicates if the picker is large.

      • title

        The default title.

      • handler

        The default handler function.

      • payload

        The default payload.

      • waitForChangesDelay

        The delay for waiting changes.

      • features

        The additional features.

    Returns (
        __namedParameters?: Partial<IParams<Data, Payload, Field>>,
    ) => { then: (onData: Fn) => void; toPromise: () => Promise<null | Data> }

    • The function to open the picker.