# Block
# Properties
label
String (opens new window) Block label, eg.My block
content
(String (opens new window) | Object (opens new window)) The content of the block. Might be an HTML string or a Component Defintionmedia
String (opens new window)? HTML string for the media/icon of the block, eg.<svg ...
,<img ...
, etc.category
String (opens new window)? Block category, eg.Basic blocks
activate
Boolean (opens new window)? If true, triggers theactive
event on the dropped component.select
Boolean (opens new window)? If true, the dropped component will be selected.resetId
Boolean (opens new window)? If true, all IDs of dropped components and their styles will be changed.disable
Boolean (opens new window)? Disable the block from being interactedonClick
Function (opens new window)? Custom behavior on click, eg.(block, editor) => editor.getWrapper().append(block.get('content'))
attributes
Object (opens new window)? Block attributes to apply in the view element
# getId
Get block id
Returns String (opens new window)
# getLabel
Get block label
Returns String (opens new window)
# getMedia
Get block media
Returns String (opens new window)
# getContent
Get block content
Returns (Object (opens new window) | String (opens new window) | Array (opens new window)<(Object (opens new window) | String (opens new window))>)
# getCategoryLabel
Get block category label
Returns String (opens new window)