# Upgrade guide for Scheduler v5.1.4

## SchedulerDatePicker's `events` property deprecated

The `events` config in `SchedulerDatePicker` has been renamed to `showEvents`. The `events` property is deprecated but
will continue to work during its deprecation period below `6.0.0` version.

**Old code:**

 ```javascript
 new SchedulerDatePicker({
    events : 'count'
    ...
})
 ```

**New code:**

```javascript
new SchedulerDatePicker({
   showEvents : 'count'
   ...
})
```

## `scrollResourceEventIntoView` and `scrollAssignmentIntoView` function signatures changed

The 3rd param of the `scrollResourceEventIntoView` was deprecated and will be removed in a future release.
The 2nd param of the `scrollAssignmentIntoView` was deprecated and will be removed in a future release.

**Old code:**

```javascript
scheduler.scrollResourceEventIntoView(resourceRecord, eventRecord, null, { block : start });
```

**New code:**

```javascript
scheduler.scrollResourceEventIntoView(resourceRecord, eventRecord, { block : start });
```


<p class="last-modified">Last modified on 2023-10-26 8:19:20</p>