Skip to content

Commit 56a21cb

Browse files
author
Krzysztof Błażełek
committed
Update readme file to show example how to update a card through event bus
1 parent 4318cc1 commit 56a21cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,9 @@ const setEventBus = (handle) => {
271271
//To add a card
272272
eventBus.publish({type: 'ADD_CARD', laneId: 'COMPLETED', card: {id: "M1", title: "Buy Milk", label: "15 mins", description: "Also set reminder"}})
273273

274+
//To update a card
275+
eventBus.publish({type: 'UPDATE_CARD', laneId: 'COMPLETED', card: {id: "M1", title: "Buy Milk (Updated)", label: "20 mins", description: "Also set reminder (Updated)"}})
276+
274277
//To remove a card
275278
eventBus.publish({type: 'REMOVE_CARD', laneId: 'PLANNED', cardId: "M1"})
276279

0 commit comments

Comments
 (0)