View source: R/plugin-serialize.R
preserve_board | R Documentation |
Board state can be preserved by serializing all contained objects and
restored via de-serialization. This mechanism can be used to power features
such as save/restore (via download, as implemented in the default
preserve_board
plugin), but more refined user experience is conceivable
in terms of undo/redo functionality and (automatic) saving of board state.
Such enhancements can be implemented in a third-party preserve_board
module.
preserve_board(server = preserve_board_server, ui = preserve_board_ui)
preserve_board_server(id, board, ...)
preserve_board_ui(id, board)
server , ui |
Server/UI for the plugin module |
id |
Namespace ID |
board |
The initial |
... |
Extra arguments passed from parent scope |
A plugin container inheriting from preserve_board
is returned by
preserve_board()
, while the UI component (e.g. preserve_board_ui()
) is
expected to return shiny UI (i.e. shiny::tagList()
) and the server
component (i.e. preserve_board_server()
) is expected to return a
shiny::reactiveVal()
or shiny::reactive()
which evaluates to NULL
or a
board
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.