mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 05:25:42 +00:00
Display link column in part table
This commit is contained in:
@ -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