Skip to main content

Basic Example

Minimal example of how to configure sidebar plugin

UiRecipesSelector.recipe.json
{
"name": "UiRecipesSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector/sidebar",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"label": "SidebarItem 1",
"viewConfig": {
"type": "CORE:InlineRecipeViewConfig",
"recipe": {
"name": "box",
"type": "CORE:UiRecipe",
"plugin": "custom-box-plugin",
"config": {
"type": "PLUGINS:custom-box-plugin-blueprint",
"content": "Item 1"
}
}
}
},
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"label": "SidebarItem 2",
"viewConfig": {
"type": "CORE:InlineRecipeViewConfig",
"recipe": {
"name": "box",
"type": "CORE:UiRecipe",
"plugin": "custom-box-plugin",
"config": {
"type": "PLUGINS:custom-box-plugin-blueprint",
"content": "Item 2"
}
}
}
}
]
}
}
Section.blueprint.json
{
"name": "Section",
"type": "CORE:Blueprint",
"description": "",
"attributes": [
{
"name": "type",
"type": "dmss://system/SIMOS/BlueprintAttribute",
"attributeType": "string",
"optional": false
}
]
}
sections.entity.json
{
"type": "./Section",
"_id": "1179c897-df62-445f-87e4-f393b4253936"
}