I'm testing out your Kanban boards. Everything seems straight forwards except I can't find an easy way to implement a button that says 'add new' that opens up a dialog to create new tasks and have it added to the board when saving.
Im using json data so it doesnt have to be persistent when saved.
can you advice me please?
My code below:
import React from 'react';
import { KanbanComponent, ColumnsDirective, ColumnDirective } from '@syncfusion/ej2-react-kanban';
import { kanbanData, kanbanGrid } from '../data/dummy';
import { Header } from '../components';
const Kanban = () => (
<div className="m-2 md:m-5 mt-24 p-2 md:p-10 bg-white rounded-3xl">
<Header category="App" title="Kanban" />
<KanbanComponent
id="kanban"
keyField="Status"
dataSource={kanbanData}
cardSettings={{ contentField: 'Summary', headerField: 'Id' }}
>
<ColumnsDirective>
{kanbanGrid.map((item, index) => <ColumnDirective key={index} {...item} />)}
</ColumnsDirective>
</KanbanComponent>
</div>
);
export default Kanban;