To change properties of an item, you should use the following technique:
// get item data by item id
var task = myBoard.getItem("task1");
// set new values
task.text = "Ticket 225";
task.status = "work";
task.color = "red";
...
// apply changes
myBoard.updateItem("task1", task);
You can read the details on the getItem and updateItem methods.
Form and Kanban Board can be bound to each other to ensure select-based synchronous changing of their data, which allows editing data on the Board:
// binding Form to Kanban data
$$("myForm").bind($$("myBoard"));
// select an item for editing
function editItem(itemId){
$$("myBoard").setCursor(itemId);
}
// data saving
function saveData(){
$$("myForm").save();
}
You can study data binding separately.
Back to top