Skip to main content

scroll

Description

Triggered when scrolling to specified elements

Usage

"scroll": ({
id: string | number,
to: "column" | "row" | "card",
options?: object
}) => void;

Parameters

The callback for the scroll event receives an object with these properties:

  • id - (required) the ID of the target element
  • to - (required) specifies the target element type: "column", "row", or "card"
  • options - (optional) an object containing scrolling options. See the full list of parameters here
info

To handle inner events, you can use the Event Bus methods

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// subscribe to the "scroll" event
board.api.on("scroll", (obj) => {
console.log(obj);
});

Change log: This event was introduced in v1.2