/
For developers
For developers
Block development
To develop your own block, you need three essential classes.
block class
class [Custom]Block : IBlock
Acts as a block model
blockValidator class
class [Custom]BlockValidator : AbstractValidator<[Custom]Block>
Implements rules to validate user input when editing the block.
blockHandler class
class [Custom]BlockHandler : BlockHandlerBase<[Custom]Block>
Acts as a controller and is responsible for loading, saving and rendering the block. Override the Load and Save methods here and, if necessary, the RenderCore, and GetRoute methods if you want to use a different story template.
Note: You can also use the SampleBlock in the DevTools plugin as a guide here.
, multiple selections available,
Related content
For developers
For developers
More like this
Für Entwickler
Für Entwickler
More like this
Für Entwickler
Für Entwickler
More like this
Für Entwickler
Für Entwickler
More like this
Für Entwickler
Für Entwickler
More like this
Basic settings
Basic settings
More like this