Fix: Tag Interface Delete Button #104256
@ -121,35 +121,20 @@ export default {
|
|||||||
const tag_options = {
|
const tag_options = {
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: "",
|
title: 'Name',
|
||||||
headerHozAlign: "right",
|
field: 'name',
|
||||||
formatter: (cell) => {
|
sorter: 'string',
|
||||||
const button = document.createElement("button");
|
editor: 'input',
|
||||||
button.classList.add("remove-tag-button");
|
vertAlign: 'center',
|
||||||
button.innerHTML = "X";
|
widthGrow: 1,
|
||||||
button.addEventListener("click", () => {
|
|
||||||
const tag = cell.getRow().getData();
|
|
||||||
this.deleteTag(tag);
|
|
||||||
});
|
|
||||||
|
|
||||||
return button;
|
|
||||||
},
|
|
||||||
headerSort: false,
|
|
||||||
vertAlign: "center",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Name",
|
|
||||||
field: "name",
|
|
||||||
sorter: "string",
|
|
||||||
editor: "input",
|
|
||||||
vertAlign: "center",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Description',
|
title: 'Description',
|
||||||
field: 'description',
|
field: 'description',
|
||||||
sorter: 'string',
|
sorter: 'string',
|
||||||
editor: 'input',
|
editor: 'input',
|
||||||
vertAlign: "center",
|
vertAlign: 'center',
|
||||||
|
widthGrow: 2,
|
||||||
dr.sybren marked this conversation as resolved
Outdated
|
|||||||
|
|
||||||
formatter(cell) {
|
formatter(cell) {
|
||||||
const cellValue = cell.getData().description;
|
const cellValue = cell.getData().description;
|
||||||
@ -159,8 +144,27 @@ export default {
|
|||||||
return cellValue;
|
return cellValue;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '',
|
||||||
|
headerHozAlign: 'right',
|
||||||
|
width: 60,
|
||||||
|
|
||||||
|
formatter: (cell) => {
|
||||||
|
const button = document.createElement('button');
|
||||||
|
button.classList.add('remove-tag-button');
|
||||||
|
button.innerHTML = '❌';
|
||||||
|
button.addEventListener('click', () => {
|
||||||
|
const tag = cell.getRow().getData();
|
||||||
|
this.deleteTag(tag);
|
||||||
|
});
|
||||||
|
|
||||||
|
return button;
|
||||||
|
},
|
||||||
|
headerSort: false,
|
||||||
|
vertAlign: 'center',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
layout: 'fitData',
|
layout: 'fitColumns',
|
||||||
dr.sybren marked this conversation as resolved
Outdated
Sybren A. Stüvel
commented
Not sure if a fixed width is going to work well here, especially when the window gets resized. Not sure if a fixed width is going to work well here, especially when the window gets resized.
|
|||||||
layoutColumnsOnNewData: true,
|
layoutColumnsOnNewData: true,
|
||||||
height: '82%',
|
height: '82%',
|
||||||
selectable: false,
|
selectable: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user
Add this column to the end, so that it has the same layout as the job blocklist (there the ❌ is on the right as well).