-
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.
refactor: deprecated multiType to default example
- Loading branch information
1 parent
b5f1fbf
commit 9f3d307
Showing
5 changed files
with
184 additions
and
43 deletions.
There are no files selected for viewing
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
19 changes: 19 additions & 0 deletions
19
example/app/data/DemoDataSource/plugins/data_grid/default/default.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,19 @@ | ||
{ | ||
"_id": "Default", | ||
"type": "./blueprints/Default", | ||
"name": "Default", | ||
"data": [ | ||
["Dodge", "Bentley Model T", "Extended Cab Pickup", "1D3MX48D48B28FPJU"], | ||
["Volvo", "Volvo Camry", "Cargo Van", "5XYZGDAG8BDE8J42H"], | ||
["Lamborghini", "Smart ATS", "Sedan", "3FTEW31R691XKD94Y"], | ||
["Land Rover", "Mazda Countach", "Crew Cab Pickup", "3GTP2WE3XBUUMTGXS"], | ||
["Ford", "Jeep Spyder", "Wagon", "1G1ZS51F37ETTZW4Y"] | ||
], | ||
"dimensional": [ | ||
["Dodge", "Bentley Model T", "Extended Cab Pickup", "1D3MX48D48B28FPJU"], | ||
["Volvo", "Volvo Camry", "Cargo Van", "5XYZGDAG8BDE8J42H"], | ||
["Lamborghini", "Smart ATS", "Sedan", "3FTEW31R691XKD94Y"], | ||
["Land Rover", "Mazda Countach", "Crew Cab Pickup", "3GTP2WE3XBUUMTGXS"], | ||
["Ford", "Jeep Spyder", "Wagon", "1G1ZS51F37ETTZW4Y"] | ||
] | ||
} |
11 changes: 0 additions & 11 deletions
11
example/app/data/DemoDataSource/plugins/data_grid/multi_type/multiType.entity.json
This file was deleted.
Oops, something went wrong.
158 changes: 158 additions & 0 deletions
158
example/app/data/DemoDataSource/recipes/plugins/data_grid/default/default.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,158 @@ | ||
{ | ||
"type": "CORE:RecipeLink", | ||
"_blueprintPath_": "/plugins/data_grid/default/blueprints/Default", | ||
"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": "Default", | ||
"viewConfig": { | ||
"type": "CORE:InlineRecipeViewConfig", | ||
"recipe": { | ||
"name": "Default", | ||
"type": "CORE:UiRecipe", | ||
"description": "Single multidimensional primitive", | ||
"plugin": "@development-framework/dm-core-plugins/data_grid", | ||
"config": { | ||
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig", | ||
"fieldNames": ["data"] | ||
} | ||
}, | ||
"scope": "self" | ||
} | ||
}, | ||
{ | ||
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem", | ||
"label": "Set dimensions", | ||
"viewConfig": { | ||
"type": "CORE:InlineRecipeViewConfig", | ||
"recipe": { | ||
"name": "Set Dimensions", | ||
"type": "CORE:UiRecipe", | ||
"plugin": "@development-framework/dm-core-plugins/data_grid", | ||
"config": { | ||
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig", | ||
"fieldNames": ["dimensional"], | ||
"title": "Datagrid with set dimensions", | ||
"description": "Dimensions are set to 4,5" | ||
} | ||
}, | ||
"scope": "self" | ||
} | ||
}, | ||
{ | ||
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem", | ||
"label": "Custom labels", | ||
"viewConfig": { | ||
"type": "CORE:InlineRecipeViewConfig", | ||
"recipe": { | ||
"name": "Custom labels", | ||
"type": "CORE:UiRecipe", | ||
"plugin": "@development-framework/dm-core-plugins/data_grid", | ||
"config": { | ||
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig", | ||
"fieldNames": ["dimensional"], | ||
"title": "Datagrid with custom labels", | ||
"description": "Set dimensions: 4,5. Custom column and row labels.", | ||
"columnLabels": ["Manufacturer", "Name", "Type", "VIN"], | ||
"rowLabels": ["John", "Joe", "Jason", "Jack", "Jay"] | ||
} | ||
}, | ||
"scope": "self" | ||
} | ||
}, | ||
{ | ||
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem", | ||
"label": "Combined labels", | ||
"viewConfig": { | ||
"type": "CORE:InlineRecipeViewConfig", | ||
"recipe": { | ||
"name": "Combined labels", | ||
"type": "CORE:UiRecipe", | ||
"plugin": "@development-framework/dm-core-plugins/data_grid", | ||
"config": { | ||
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig", | ||
"fieldNames": ["dimensional"], | ||
"title": "Datagrid with combined labels", | ||
"description": "Set dimensions: 4,5. Combined custom and pre-defined column and row labels.", | ||
"columnLabels": ["Manufacturer", "Name", "Type", "VIN"], | ||
"rowLabels": ["John", "...123"] | ||
} | ||
}, | ||
"scope": "self" | ||
} | ||
}, | ||
{ | ||
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem", | ||
"label": "Hidden labels", | ||
"viewConfig": { | ||
"type": "CORE:InlineRecipeViewConfig", | ||
"recipe": { | ||
"name": "Hidden labels", | ||
"type": "CORE:UiRecipe", | ||
"plugin": "@development-framework/dm-core-plugins/data_grid", | ||
"config": { | ||
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig", | ||
"fieldNames": ["dimensional"], | ||
"title": "Hidden labels", | ||
"editable": false, | ||
"description": "Hide labels for rows and columns. Set dimensions: 4,5.", | ||
"showColumns": false, | ||
"showRows": false | ||
} | ||
}, | ||
"scope": "self" | ||
} | ||
}, | ||
{ | ||
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem", | ||
"label": "No-edit columns and rows", | ||
"viewConfig": { | ||
"type": "CORE:InlineRecipeViewConfig", | ||
"recipe": { | ||
"name": "No-edit columns and rows", | ||
"type": "CORE:UiRecipe", | ||
"plugin": "@development-framework/dm-core-plugins/data_grid", | ||
"config": { | ||
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig", | ||
"fieldNames": ["data"], | ||
"title": "No-edit columns and rows", | ||
"description": "No-edit columns and rows. No set dimensions.", | ||
"adjustableColumns": false, | ||
"adjustableRows": false | ||
} | ||
}, | ||
"scope": "self" | ||
} | ||
}, | ||
{ | ||
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem", | ||
"label": "Non-editable", | ||
"viewConfig": { | ||
"type": "CORE:InlineRecipeViewConfig", | ||
"recipe": { | ||
"name": "Non-editable", | ||
"type": "CORE:UiRecipe", | ||
"plugin": "@development-framework/dm-core-plugins/data_grid", | ||
"config": { | ||
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig", | ||
"fieldNames": ["data"], | ||
"title": "Non-editable datagrid", | ||
"editable": false, | ||
"description": "Non-editable. Unknown dimensions. Custom column and row labels.", | ||
"columnLabels": ["Manufacturer", "Name", "Type", "VIN"], | ||
"rowLabels": ["John", "Joe", "Jason", "Jack", "Jay"] | ||
} | ||
}, | ||
"scope": "self" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
31 changes: 0 additions & 31 deletions
31
example/app/data/DemoDataSource/recipes/plugins/data_grid/multi_type/multiType.recipe.json
This file was deleted.
Oops, something went wrong.