fixed the grid layout schema and fixed layout bugs (#847)

* fixed the grid layout schema and fixed layout bugs
This commit is contained in:
Leila Lali
2018-03-06 15:33:47 -08:00
committed by GitHub
parent 9f5268101d
commit 1d284ea66a
3 changed files with 55 additions and 13 deletions

View File

@@ -75,10 +75,46 @@ export function generateDashboardGridLayoutSchema(type?: 'database' | 'server',
type: 'object',
properties: {
name: {
type: 'string'
type: 'string',
description: localize('dashboardpage.tabName', "The title of the container")
},
icon: {
type: 'string'
row: {
type: 'number',
description: localize('dashboardpage.rowNumber', "The row of the component in the grid")
},
rowspan: {
type: 'string',
description: localize('dashboardpage.rowSpan', "The rowspan of the component in the grid. Default value is 1. Use '*' to set to number of rows in the grid.")
},
col: {
type: 'number',
description: localize('dashboardpage.colNumber', "The column of the component in the grid")
},
colspan: {
type: 'string',
description: localize('dashboardpage.colspan', "The colspan of the component in the grid. Default value is 1. Use '*' to set to number of columns in the grid.")
},
widget: {
anyOf: [
{
type: 'object',
properties: schemas,
minItems: 1,
maxItems: 1
}
]
},
webview: {
anyOf: [
{
type: 'object',
properties: {
id: {
type: 'string',
}
}
}
]
},
when: {
description: localize('sqlops.extension.contributes.widget.when', 'Condition which must be true to show this item'),