• Returns the value and a loading indicator

    Parameters

    • input: ValueOrOnDemand = ''

      the text or function to retrieve the text

    • Optional onError: ((err) => string)

      a callback that will be called when the input could not be retrieved. It should return a fallback value that will be used instead.

        • (err): string
        • Parameters

          • err: any

          Returns string

    Returns readonly [string, boolean]

Generated using TypeDoc