Fix: Tag Interface Delete Button #104256
@ -140,12 +140,38 @@ export default {
|
|||||||
|
|
||||||
const tag_options = {
|
const tag_options = {
|
||||||
columns: [
|
columns: [
|
||||||
{ title: "Name", field: "name", sorter: "string", editor: "input" },
|
{
|
||||||
|
title: "",
|
||||||
|
headerHozAlign: "right",
|
||||||
|
formatter: (cell) => {
|
||||||
|
const button = document.createElement("button");
|
||||||
|
button.classList.add("remove-tag-button");
|
||||||
|
button.innerHTML = "X";
|
||||||
|
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",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
dr.sybren marked this conversation as resolved
Outdated
|
|||||||
title: "Description",
|
title: "Description",
|
||||||
field: "description",
|
field: "description",
|
||||||
sorter: "string",
|
sorter: "string",
|
||||||
editor: "input",
|
editor: "input",
|
||||||
|
vertAlign: "center",
|
||||||
|
width: 400,
|
||||||
|
|
||||||
formatter(cell) {
|
formatter(cell) {
|
||||||
const cellValue = cell.getData().description;
|
const cellValue = cell.getData().description;
|
||||||
if (!cellValue) {
|
if (!cellValue) {
|
||||||
|
Loading…
Reference in New Issue
Block a user
Not sure if a fixed width is going to work well here, especially when the window gets resized.