Here is how to do it in SVAR Svelte Gantt: import and modify the defaultEditorShape
array.
Example:
<script>
import { getData } from "./data";
import { Gantt, defaultEditorShape } from "wx-svelte-gantt";
const data = getData();
const editorShape = [
{
key: "assignedTo",
type: "text", // or any other field type you need
label: "Assigned To",
config: {
placeholder: "Assign a user",
},
},
];
</script>
<Gantt
tasks={data.tasks}
columns={data.columns}
{editorShape} />