Block registry
register_block.Rd
Register, list and retrieve available blocks.
Usage
register_block(
ctor,
name,
description,
classes = NULL,
uid = NULL,
category = "uncategorized",
package = NULL,
overwrite = FALSE
)
list_blocks()
unregister_blocks(uid = list_blocks())
register_blocks(...)
available_blocks()
create_block(id, ...)
Arguments
- ctor
Block constructor
- name, description
Metadata describing the block
- classes
Block classes
- uid
Unique ID for a registry entry
- category
Useful to sort blocks by topics. If not specified, blocks are uncategorized.
- package
Package where constructor is defined (or
NULL
)- overwrite
Overwrite existing entry
- ...
Forwarded to
register_block()
- id
Block ID as reported by
list_blocks()