Skip to content

Commit 1a2287f

Browse files
committed
doc: update the readme with lane actions
the updateLane action already existed in code, but was not documented, fixed
1 parent 1a119e2 commit 1a2287f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,19 @@ eventBus.publish({type: 'MOVE_CARD', fromLaneId: 'PLANNED', toLaneId: 'WIP', car
283283
//To update the lanes
284284
eventBus.publish({type: 'UPDATE_LANES', lanes: newLaneData})
285285

286+
//To update one lane
287+
eventBus.publish({type: 'UPDATE_LANE', lane: { id: 'TODO', title: 'teste' }})
288+
289+
//To add a new lane
290+
eventBus.publish({type: 'ADD_LANE', lane: { id: 'TODO', title: 'teste' }})
291+
292+
//To move one lane
293+
eventBus.publish({type: 'MOVE_LANE', fromIndex: 0, toIndex: 1 })
294+
295+
//To remove a lane
296+
eventBus.publish({type: 'REMOVE_LANE', laneId: 'TODO' })
297+
298+
286299
<Board data={data} eventBusHandle={setEventBus}/>
287300
```
288301

0 commit comments

Comments
 (0)