edit_block | R Documentation |
Logic and user experience for editing block attributes such as block titles can be customized or enhanced by providing an alternate version of this plugin. The default implementation only handles block titles, but if further (editable) block attributes are to be introduced, corresponding UI and logic can be included here. In addition to blocks titles, this default implementation provides UI for removing, as well as inserting blocks before or after the current one.
edit_block(server = edit_block_server, ui = edit_block_ui)
edit_block_server(id, block_id, board, update, ...)
edit_block_ui(x, id, ...)
block_summary(x, data)
## S3 method for class 'block'
block_summary(x, data)
server , ui |
Server/UI for the plugin module |
id |
Namespace ID |
block_id |
Block ID |
board |
Reactive values object containing board information |
update |
Reactive value object to initiate board updates |
... |
Extra arguments passed from parent scope |
x |
Block |
data |
Result data |
A plugin container inheriting from edit_block
is returned by
edit_block()
, while the UI component (e.g. edit_block_ui()
) is
expected to return shiny UI (i.e. shiny::tagList()
) and the server
component (i.e. edit_block_server()
) is expected to return NULL
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.