Our flexible Kanban board for managing tasks with drag drop


Post by yingtao »

I want use data from local. My web page shownormal,but the console show"Trying to request without URL specified",

Image

Image


Post by tasnim »


Post by yingtao »

like this?but it hasn't any change.

  const taskBoardConfig: BryntumTaskBoardProps = {
    columnField: 'statu', 
    columns: ['todo'],
    swimlanes: [
      {
        id: 'high',
        text: 'High',
        collapsed: false, 
      },
      {
        id: 'low',
        text: 'LOW1',
        collapsed: false, 
        tasksPerRow: 4,
      },
    ],
    swimlaneField: 'prio', 
    project: {
      tasks: [
        {
          id: 100,
          name: 'Go to airport',
          statu: 'todo',
          prio: 'low',
        },
        {
          id: 7,
          name: 'Renew passport',
          statu: 'todo',
          prio: 'high',
        },
        {
          id: 8,
          name: 'Swim in pool',
          statu: 'todo',
          prio: 'medium',
        },
        {
          id: 9,
          name: 'Scuba diving',
          statu: 'todo',
          prio: 'medium',
        },
        {
          id: 10,
          name: 'Canyoning',
          statu: 'todo',
          prio: 'low',
        },
      ],
    },
  };

Image


Post by tasnim »

Could you please provide a zipped runnable test case so we can debug it?


Post by yingtao »

This is my demo.By the way,How can I only show swimlanes ,don't show columns?
Image

Attachments
basic.zip
(1.81 MiB) Downloaded 4 times

Post by mats »

I want use data from local. My web page shownormal,but the console show"Trying to request without URL specified",

If you want to use local data, don't call project.load();

 useEffect(() => {
    // This shows loading data
    // To load data automatically configure project with `autoLoad : true`
    const galley = taskBoardInstance();
    const project = galley.project as ProjectModel;
    project.load();
    // (galley.features as any).featureName.disabled = false;
  });

Instead use https://bryntum.com/docs/taskboard/api/TaskBoard/model/ProjectModel#config-tasks


Post by yingtao »

Thank you for you answer.My problem is solved.


Post Reply