toolkit.withTimeout {shinylight} | R Documentation |
JavaScript function: Adds a fake callback argument to a nullary function.
Description
Perhaps you have a nullary function that you want called
when the user clicks a button, but the toolkit.button
function wants a unary function that has a completion callback
so that the button knows when to pop back up again. In this
situation you might wrap your function with a call to
toolkit.withTimeout
.
Arguments
fn |
|
Value
Unary function (taking one function as
an argument) that simply calls fn
immediately then
calls its argument again after 200ms.
[Package shinylight version 1.2 Index]