Browse Source

bugfix: compnent template fixes

gh-pages
Michael Shanks 7 years ago
parent
commit
762e73c052
  1. 9
      packages/materialdesign-components/src/Templates/indexDatatable.js
  2. 2
      packages/materialdesign-components/src/Templates/recordForm.js

9
packages/materialdesign-components/src/Templates/indexDatatable.js

@ -33,6 +33,15 @@ const tableProps = (index, indexSchema) => ({
], ],
}, },
], ],
onLoad: [
{
"##eventHandlerType": "List Records",
parameters: {
indexKey: "/all_contacts",
statePath: "all_contacts"
}
}
]
}) })
const columnHeaders = indexSchema => const columnHeaders = indexSchema =>

2
packages/materialdesign-components/src/Templates/recordForm.js

@ -12,7 +12,7 @@ const outerContainer = record => ({
{ {
"##eventHandlerType": "Get New Record", "##eventHandlerType": "Get New Record",
parameters: { parameters: {
collectionKey: record.collectionKey, collectionKey: record.collectionNodeKey(),
childRecordType: record.name, childRecordType: record.name,
statePath: record.name, statePath: record.name,
}, },

Loading…
Cancel
Save