Skip to content

Commit

Permalink
doc: update the readme with lane actions
Browse files Browse the repository at this point in the history
the updateLane action already existed in code, but was not documented, fixed
  • Loading branch information
LucasBadico committed Nov 26, 2020
1 parent 1a119e2 commit 1a2287f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,19 @@ eventBus.publish({type: 'MOVE_CARD', fromLaneId: 'PLANNED', toLaneId: 'WIP', car
//To update the lanes
eventBus.publish({type: 'UPDATE_LANES', lanes: newLaneData})

//To update one lane
eventBus.publish({type: 'UPDATE_LANE', lane: { id: 'TODO', title: 'teste' }})

//To add a new lane
eventBus.publish({type: 'ADD_LANE', lane: { id: 'TODO', title: 'teste' }})

//To move one lane
eventBus.publish({type: 'MOVE_LANE', fromIndex: 0, toIndex: 1 })

//To remove a lane
eventBus.publish({type: 'REMOVE_LANE', laneId: 'TODO' })


<Board data={data} eventBusHandle={setEventBus}/>
```
Expand Down

0 comments on commit 1a2287f

Please sign in to comment.