triggerEvent {shiny.react}R Documentation

Trigger event

Description

Creates a handler which can be used for onClick and similar props of 'React' components to trigger an event in 'Shiny'.

Usage

triggerEvent(inputId)

Arguments

inputId

'Shiny' input ID to trigger the event on.

Value

A ReactData object which can be passed as a prop to 'React' components.


[Package shiny.react version 0.4.0 Index]