Skip to contents

Set a router callback function

Usage

add_router_callback(router, callback = c("pageload", "default"), func)

Arguments

router

A router object.

callback

The name of the callback to set. Currently "pageload" and "default" callbacks are supported.

func

The callback function. The function should take a router_page object and shiny session as input.

Value

Invisibly returns the input router object.

Examples