R/router.R
add_router_callback.Rd
Set a router callback function
add_router_callback(router, callback = c("pageload", "default"), func)
A router object.
The name of the callback to set. Currently "pageload" and "default" callbacks are supported.
"pageload"
"default"
The callback function. The function should take a router_page object and shiny session as input.
router_page
Invisibly returns the input router object.
router