bslibreact (JavaScript) - v0.1.0
    Preparing search index...

    Function useHostedInputValue

    • Read a hosted input's current value on the client, the port's version of a conditionalPanel reading input.x. Starts from the value Shiny last sent, then follows shiny:inputchanged, a jQuery event on document with {name, value} on the event object, so this listens through window.$(document), not addEventListener. Undefined until Shiny has the input at all.

      Type Parameters

      • T

      Parameters

      • id: string

      Returns T | undefined