The onHeightChanged event handler fires whenever the control offsetHeight changes.
Declaration
DayPilot.Kanban.onHeightChanged(args)Parameters
args.oldHeight(number) - previousoffsetHeightvalueargs.newHeight(number) - newoffsetHeightvalue
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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot