Skip to contents

This has to be called from the stack parent namespace. This can also be called dynamically when inserting a new block within a stack.

This has to be called from the workspace parent namespace. This can also be called dynamically when inserting a new stack within a workspace.

Usage

inject_remove_button(x, ...)

# S3 method for class 'block'
inject_remove_button(x, ns, .hidden = !getOption("BLOCKR_DEV", FALSE), ...)

# S3 method for class 'stack'
inject_remove_button(x, id, ...)

Arguments

x

Object for which to generate UI components

...

Generic consistency

ns

Parent namespace.

.hidden

Whether to initialise the block with hidden inputs.

id

Parent ID