Skip to contents

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.

Usage

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)

Arguments

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

Value

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.