mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 19:01:17 +00:00
Display link column in part table
This commit is contained in:
1 parent
71522fa608
commit
69362ab960
2 files changed
+38
-2
No files matched your search
@@ -446,6 +446,20 @@ function loadPartTable(table, url, options={}) {
|
||||
}
|
||||
});
|
||||
|
||||
columns.push({
|
||||
field: 'link',
|
||||
title: '{% trans "Link" %}',
|
||||
formatter: function(value, row, index, field) {
|
||||
return renderLink(
|
||||
value, value,
|
||||
{
|
||||
max_length: 32,
|
||||
remove_http: true,
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
$(table).inventreeTable({
|
||||
url: url,
|
||||
sortName: 'name',
|
||||
|
||||
Reference in new issue
Block a user