unselect-card
설명
카드가 선택 해제될 때 발생합니다.
사용법
"unselect-card": ({ id: string | number }) => void;
매개변수
unselect-card 이벤트의 콜백은 다음 속성을 포함하는 객체를 받습니다:
id
- (필수) 선택 해제된 카드의 ID
정보
내부 이벤트 관리를 위해 Event Bus methods를 참조할 수 있습니다.
예제
// 칸반 생성
const board = new kanban.Kanban("#root", {
columns,
cards
});
// "unselect-card" 이벤트 구독
board.api.on("unselect-card", (obj) => {
console.log(obj.id);
});