state
. Internally, this is achieved using Framework’s mail
, ephemeral state that is cleared when it reaches the intended user.
Triggering a file download
Thefile_download
method takes the data
and file_name
arguments. The first must contain raw bytes (a bytes
object) or a packed file. As mentioned in the Application State section of the guide, a packed file is obtained using the wf.pack_file
or wf.pack_bytes
methods.
Adding a notification

add_notification
method, which takes the type
, title
and message
arguments. type
must be one of error
, warning
, info
, success
.
Opening a URL
Open a URL in a new tab using theopen_url
method, which takes the url
argument.
noopener
and noreferrer
options.
Popup blockers: Given that the URL is opened asynchronously, popup blockers will likely block the new window —unless the user has opted in.
Changing the active page
The active page and route parameters can be changed using the methodsset_page
and set_route_vars
. This is explained in more detail in Page Routes.