Hi all, I’m working on integration of the brand new kanban widget on my CakePHP-based Webserver. Currently the AJAX-process for initialization data exchange (getCards(), getColumns(), getRows() works well. But in difference to the DHX code snippet example https://snippet.dhtmlx.com/f25y0809?mode=wide the js-plugin doesnt generate no further PUT- or POST-requests for card interacting (move-card, update-card). Are any code addings required to do this or is the trial version not able for that?
const url = "<?= Router::url(['controller' => 'AsmProcs'], true) ?>";
const restProvider = new kanban.RestDataProvider(url);
const users = <?= json_encode($Workers) ?>;
const cardPriority = <?= json_encode($cPrio) ?>;
const cardShape = { // card settings
label: true,
description: true,
progress: true,
start_date: true,
end_date: true,
priority: {
show: true,
values: cardPriority
},
users: {
show: true,
values: users
},
color: true,
menu: true,
cover: true,
attached: false,
};
Promise.all([
restProvider.getCards(),
restProvider.getColumns(),
restProvider.getRows()
]).then(([cards, columns, rows]) => {
const board = new kanban.Kanban("#root", {
columns,
cards,
rows,
rowKey: "type",
cardShape,
});
board.api.setNext(restProvider);
new kanban.Toolbar("#toolbar",{ api: board.api });
});