DayPilot.Kanban.onHeightChanged

The onHeightChanged event handler fires whenever the control offsetHeight changes.

Declaration

DayPilot.Kanban.onHeightChanged(args)

Parameters

  • args.oldHeight (number) - previous offsetHeight value

  • args.newHeight (number) - new offsetHeight value

Examples

JavaScript

const kanban = new DayPilot.Kanban("dp", {
  onHeightChanged: (args) => {
    console.log("Kanban height changed from", args.oldHeight, "to", args.newHeight);
  },
  // ...
});
kanban.init();

Angular

<daypilot-kanban [config]="config"></daypilot-kanban>
config: DayPilot.KanbanConfig = {
  onHeightChanged: (args) => {
    console.log("Kanban height changed from", args.oldHeight, "to", args.newHeight);
  },
  // ...
};

React

<DayPilotKanban
  onHeightChanged={onHeightChanged}
  {/* ... */}
/>
const onHeightChanged = (args) => {
  console.log("Kanban height changed from", args.oldHeight, "to", args.newHeight);
};

Vue

<DayPilotKanban
  @heightChanged="onHeightChanged"
  <!-- ... -->
/>
const onHeightChanged = (args) => {
  console.log("Kanban height changed from", args.oldHeight, "to", args.newHeight);
};

See Also

DayPilot.Kanban.height

DayPilot.Kanban.heightSpec

DayPilot.Kanban Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript