Lock
lock.Rd
Lock edit of stacks and blocks.
Usage
lock(session = shiny::getDefaultReactiveDomain())
unlock(session = shiny::getDefaultReactiveDomain())
toggle_lock(session = shiny::getDefaultReactiveDomain())
is_locked(session = shiny::getDefaultReactiveDomain())
observe_lock(fn, ..., session = shiny::getDefaultReactiveDomain())
Arguments
- session
Shiny session.
- fn
Callback function to run when the editing locked/unlocked. It must accept a single argument, which is a boolean indicating whether the editing is locked or not.
- ...
passed to
shiny::observeEvent()
.