manage_links | R Documentation |
Logic and user experience for adding new, removing and modifying existing links to/from the board can be customized or enhanced by providing an alternate version of this plugin. The default implementation provides a table-based UI, presented in a modal.
manage_links(server = manage_links_server, ui = manage_links_ui)
manage_links_server(id, board, update, ...)
manage_links_ui(id, board)
server , ui |
Server/UI for the plugin module |
id |
Namespace ID |
board |
The initial |
update |
Reactive value object to initiate board updates |
... |
Extra arguments passed from parent scope |
Updates are mediated via the shiny::reactiveVal()
object passed as
update
, where link updates are communicated as list entry stacks
with
components add
, rm
or mod
, where
add
is either NULL
or a links
object (link IDs may not already
exists),
rm
is either NULL
or a character vector of (existing) link IDs,
mod
is either NULL
or a links
object (where link IDs must already
exist).
A plugin container inheriting from manage_links
is returned by
manage_links()
, while the UI component (e.g. manage_links_ui()
) is
expected to return shiny UI (i.e. shiny::tagList()
) and the server
component (i.e. manage_links_server()
) is expected to return NULL
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.