Block Custom View
Create a custom Web Component to visually represent blocks in Umbraco's Block editors.
Build a Custom View
{
"$schema": "../../umbraco-package-schema.json",
"name": "My.CustomViewPackage",
"version": "0.1.0",
"extensions": [
{
"type": "blockEditorCustomView",
"alias": "my.blockEditorCustomView.Example",
"name": "My Example Custom View",
"element": "/App_Plugins/block-custom-view/dist/example-block-custom-view.js",
"forContentTypeAlias": "myElementTypeAlias", // your Element Type Alias from Step 4 (e.g. "myHeroBlock")
"forBlockEditor": "block-list" // insert block editor type here: "block-list" or "block-grid"
}
]
}The Web Component
Last updated
Was this helpful?