kevmodrome
6 years ago
No known key found for this signature in database
GPG Key ID: E8F9CD141E63BF38
3 changed files with
5 additions and
9 deletions
-
packages/builder/src/components/userInterface/temporaryPanelStructure.js
-
packages/standard-components/src/DataGrid/Component.svelte
-
packages/standard-components/src/DataGrid/customRenderer.js
|
|
|
@ -328,9 +328,9 @@ export default { |
|
|
|
control: TableViewSelect, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Detail URL", |
|
|
|
label: "Table URL", |
|
|
|
key: "detailUrl", |
|
|
|
placeholder: "tableName/", |
|
|
|
placeholder: "tableName", |
|
|
|
control: Input, |
|
|
|
}, |
|
|
|
{ |
|
|
|
|
|
|
|
@ -60,10 +60,6 @@ |
|
|
|
const jsonTable = await _bb.api.get(`/api/tables/${datasource.tableId}`) |
|
|
|
table = await jsonTable.json() |
|
|
|
schema = table.schema |
|
|
|
// schema._id = { |
|
|
|
// type: '_id', |
|
|
|
// options: detailUrl |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
columnDefs = Object.keys(schema).map((key, i) => { |
|
|
|
@ -83,12 +79,12 @@ |
|
|
|
columnDefs = [...columnDefs, { |
|
|
|
headerName: 'Details', |
|
|
|
field: '_id', |
|
|
|
width: 50, |
|
|
|
width: 25, |
|
|
|
flex: 0, |
|
|
|
editable: false, |
|
|
|
cellRenderer: getRenderer({ |
|
|
|
type: '_id', |
|
|
|
options: detailUrl || 'someTableName' |
|
|
|
options: detailUrl |
|
|
|
}), |
|
|
|
autoHeight: true, |
|
|
|
}] |
|
|
|
|
|
|
|
@ -143,7 +143,7 @@ function viewDetailsRenderer(options) { |
|
|
|
new ViewDetails({ |
|
|
|
target: container, |
|
|
|
props: { |
|
|
|
url: `${options}${params.data._id}` |
|
|
|
url: `/${options}/${params.data._id}` |
|
|
|
}, |
|
|
|
}) |
|
|
|
|
|
|
|
|