Skip to contents

Run JS code under the component scope. The provided callback will have access to the `this` JavaScript property as if running in the component root.

Usage

componentScript(session = getDefaultReactiveDomain(), inputId, callback)

Arguments

session

The session object passed to function given to shinyServer. Default is getDefaultReactiveDomain().

inputId

The type of the component that was used in registerComponent to register the component.

callback

Named attributes to update and corresponding values.

Value

No return value, called for side effects.