# JavaScript Kanban Column Moving | DayPilot Pro for JavaScript Demo

> Read more about Kanban [column moving](https://doc.daypilot.org/kanban/column-moving/) [doc.daypilot.org].

## Links

- Canonical HTML: /demo/kanban/columnmoving.html
- Source HTML folder: /demo/kanban/
- Catalog root: /demo/
- Catalog: /demo/llms.txt

## Source

### Inline demo script 1

```javascript
const kanban = new DayPilot.Kanban("kanban", {
            columnMoveHandling: "Update",
            onColumnMove: (args) => {
                kanban.message("The column has been moved.");
            },
        });
        kanban.init();

        const app = {
            loadData() {
                const columns = [
                    {name: "Analysis", id: "1", barColor: "#f9ba25"},
                    {name: "Draft", id: "2"},
                    {name: "Testing", id: "3"}
                ];
                const cards = [
                    {id: 1, "name": "Task 1", column: "1", text: "This is a description of task #1."},
                    {id: 2, "name": "Task 2", column: "1", text: "This is a description of task #2.", barColor: "#ea3624"},
                ];
                kanban.update({columns, cards});
            }
        };
        app.loadData();
```

