Skip to content

Commit

Permalink
document of day-click event
Browse files Browse the repository at this point in the history
  • Loading branch information
wand2016 committed Oct 3, 2020
1 parent 78963c3 commit d75fc10
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,22 @@ Boolean to switch to vertical mode. `false` by default.
<calendar-heatmap :vertical="true" ... />
```

### **day-click** - `day-click`
Function called when a rect is clicked.
``` html
<calendar-heatmap :@day-click="handleDayClick" ... />
```

The argument type of the listener is as follows:

```typescript
{
date: Date
count: number
colorIndex: number
}
```

## License

[MIT](http://opensource.org/licenses/MIT)

0 comments on commit d75fc10

Please sign in to comment.