The onCardClicked event handler fires after the default card click action.
DayPilot.Kanban.onCardClicked(args)args.card (DayPilot.Card) - the clicked card
Use this event for code that should run after the built-in click behavior has finished. If you need to cancel the default click action, use DayPilot.Kanban.onCardClick instead.
JavaScript
const kanban = new DayPilot.Kanban("dp", {
onCardClicked: (args) => {
DayPilot.Modal.alert(`Clicked: ${args.card.data.name}`);
},
// ...
});
kanban.init();Angular
<daypilot-kanban [config]="config"></daypilot-kanban>config: DayPilot.KanbanConfig = {
onCardClicked: (args) => {
DayPilot.Modal.alert(`Clicked: ${args.card.data.name}`);
},
// ...
};React
<DayPilotKanban
onCardClicked={onCardClicked}
{/* ... */}
/>const onCardClicked = (args) => {
DayPilot.Modal.alert(`Clicked: ${args.card.data.name}`);
};Vue
<DayPilotKanban
@cardClicked="onCardClicked"
<!-- ... -->
/>const onCardClicked = (args) => {
DayPilot.Modal.alert(`Clicked: ${args.card.data.name}`);
};