Skip to content

Commit

Permalink
feat: add example for multiple primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
awesthouse committed Jan 10, 2024
1 parent 9f3d307 commit 4741c70
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "MultiplePrimitives",
"type": "CORE:Blueprint",
"attributes": [
{
"name": "type",
"type": "dmss://system/SIMOS/BlueprintAttribute",
"attributeType": "string"
},
{
"name": "name",
"type": "dmss://system/SIMOS/BlueprintAttribute",
"attributeType": "string"
},
{
"name": "manufacturer",
"type": "CORE:BlueprintAttribute",
"attributeType": "string",
"dimensions": "*"
},
{
"name": "car_name",
"type": "CORE:BlueprintAttribute",
"attributeType": "string",
"dimensions": "*"
},
{
"name": "model",
"type": "CORE:BlueprintAttribute",
"attributeType": "string",
"dimensions": "*"
},
{
"name": "vin",
"type": "CORE:BlueprintAttribute",
"attributeType": "string",
"dimensions": "*"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"_id": "MultiplePrimitives",
"type": "./blueprints/MultiplePrimitives",
"name": "MultiplePrimitives",
"manufacturer": ["Dodge", "Volvo", "Lamborghini", "Land Rover", "Ford"],
"car_name": [
"Bentley Model T",
"Volvo Camry",
"Smart ATS",
"Mazda Countach",
"Jeep Spyder"
],
"model": [
"Extended Cab Pickup",
"Cargo Van",
"Sedan",
"Crew Cab Pickup",
"Wagon"
],
"vin": [
"1D3MX48D48B28FPJU",
"5XYZGDAG8BDE8J42H",
"3FTEW31R691XKD94Y",
"3GTP2WE3XBUUMTGXS",
"1G1ZS51F37ETTZW4Y"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"type": "CORE:RecipeLink",
"_blueprintPath_": "/plugins/data_grid/multiple_primitives/blueprints/MultiplePrimitives",
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"label": "Multiple (default)",
"viewConfig": {
"type": "CORE:InlineRecipeViewConfig",
"recipe": {
"name": "Multiple Primitives",
"type": "CORE:UiRecipe",
"description": "Multiple primitives combined in datagrid",
"plugin": "@development-framework/dm-core-plugins/data_grid",
"config": {
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig",
"rowLabels": ["Manufacturer", "Name", "Type", "VIN"],
"fieldNames": ["manufacturer", "car_name", "model", "vin"],
"title": "Multiple primitives datagrid"
}
},
"scope": "self"
}
},
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"label": "Vertical printing",
"viewConfig": {
"type": "CORE:InlineRecipeViewConfig",
"recipe": {
"name": "Vertical printing",
"type": "CORE:UiRecipe",
"description": "Printdirection: vertical .Multiple primitives combined in datagrid",
"plugin": "@development-framework/dm-core-plugins/data_grid",
"config": {
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig",
"rowLabels": ["Manufacturer", "Name", "Type", "VIN"],
"fieldNames": ["manufacturer", "car_name", "model", "vin"],
"title": "Vertically printed datagrid",
"printDirection": "vertical"
}
},
"scope": "self"
}
}
]
}
}
}

0 comments on commit 4741c70

Please sign in to comment.