Skip to contents

This modules aims at showing extra info in the offcanvas menu to add blocks. Blocks are added at the stack level with another function, add_block_stack.

This modules aims at showing extra info in the offcanvas menu to add blocks. Blocks are added at the stack level with another function, add_block_stack.

This is to be called oustide the stack by other modules.

Useful to allow stack to add blocks to it.

Useful to allow stack to add blocks to it. The selected block can be accessed through input$search within add_block_server.

Usage

add_block_server(x, ...)

# Default S3 method
add_block_server(x, id, vals, ...)

add_block(stack, block, position = NULL)

add_block_ui(x, ...)

# Default S3 method
add_block_ui(x, id, ...)

Arguments

x

Stack object.

...

For generic consistency

id

Module id.

vals

Reactive values.

stack

stack to update. See new_stack.

block

Block to insert.

position

Where to insert the new block. If NULL, the block will be added in the last position.

Value

Invisibly returns the stack.