Allow column show/hide on BOM table

This commit is contained in:
Oliver Walters 2020-08-20 08:57:11 +10:00
parent 41c4a5376b
commit 0aeb7ddbdf

View File

@ -312,13 +312,14 @@ function loadBomTable(table, options) {
) )
} }
table.bootstrapTable({ table.inventreeTable({
treeEnable: true, treeEnable: true,
rootParentId: options.parent_id, rootParentId: options.parent_id,
idField: 'pk', idField: 'pk',
uniqueId: 'pk', uniqueId: 'pk',
parentIdField: 'parentId', parentIdField: 'parentId',
treeShowField: 'sub_part', treeShowField: 'sub_part',
showColumns: true,
sortable: true, sortable: true,
search: true, search: true,
rowStyle: function(row, index) { rowStyle: function(row, index) {