ywana-core8 0.0.208 → 0.0.212

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.208",
3
+ "version": "0.0.212",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -335,6 +335,7 @@ const TableEditor = (props) => {
335
335
  label: field.label,
336
336
  type: field.type,
337
337
  format: field.format,
338
+ item: field.item ? field.item : [],
338
339
  onChange: field.id === "checked" ? checkOne : field.editable ? change : null, /* checked has it´s own handler */
339
340
  options
340
341
  }
package/src/html/table.js CHANGED
@@ -90,7 +90,11 @@ export const DataTable = (props) => {
90
90
  {
91
91
  columns
92
92
  .filter(({ type }) => type === TYPES.ENTITY)
93
- .map(({ label }) => [<th>{label}</th>, <th>{label}</th>, <th>{label}</th>])
93
+ .map( column => {
94
+ const { item = [] } = column
95
+ console.log("subheader",column, item)
96
+ return item.map(field => <th>{field.label}</th>)
97
+ })
94
98
  }
95
99
  </tr>
96
100
  </thead>