Inject remove button into block header
inject_remove_button.Rd
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, ...)