-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add example for multiple primitives
- Loading branch information
1 parent
9f3d307
commit 4741c70
Showing
3 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
...Source/plugins/data_grid/multiple_primitives/blueprints/MultiplePrimitives.blueprint.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "*" | ||
} | ||
] | ||
} |
27 changes: 27 additions & 0 deletions
27
.../data/DemoDataSource/plugins/data_grid/multiple_primitives/multiplePrimitives.entity.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} |
55 changes: 55 additions & 0 deletions
55
...moDataSource/recipes/plugins/data_grid/multiple_primitives/multiplePrimitives.recipe.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |