The onHeightChanged event handler fires whenever the control offsetHeight changes.
DayPilot.Kanban.onHeightChanged(args)args.oldHeight (number) - previous offsetHeight value
args.newHeight (number) - new offsetHeight value
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);
};