Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
itsnorbertkalacska committed Nov 7, 2019
1 parent c940613 commit 2ee5370
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ The Dayz component accepts these properties:
* **events** (optional): An `Dayz.EventsCollection` instance that contains events that should be displayed on the calendar.
* `Dayz.EventsCollection` accepts two arguments:
* An array of events
* a list of optional properties. Currently the only option that can be set is:
* a list of optional properties. Currently two option that can be set is:
* **displayAllDay**, If set will show all day events at the top of the week and day views. If false, all day events will fill completly fill the column. defaults to true.
* **displayLabelForAllDays**, If set to `false`, for events that are shown on multiple days only the first event will have the `content` attribute shown. In any other case `content` will be shown on every days. This prop works only if `displayAllDay` is `false`.
* **highlightDays**: either a function or an array of days that should be highlighted. Each day can be a string date that momentjs accepts, a JS Date object, or a momentjs date. if using a function, it will be passed the day and should return either false, or a string to use for the className.
* **dayEventHandlers** event handlers to attach on the Day element, such as onClick, onMouseOver, etc.
* if **onClick** or **onDoubleClick** is given to dayEventHandlers, the call back will be passed two variables, the event and a `momentjs` date. Hours/Minutes are added to the date to reflect how far down the Y axis was clicked.
Expand Down

0 comments on commit 2ee5370

Please sign in to comment.