Skip to content

Commit

Permalink
[update] Whats new for 2.1.3 and minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiipylypchuk1991 committed Oct 31, 2023
1 parent 055010b commit e9b739b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/api/config/js_eventcalendar_editorvalidation_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ The callback function takes an object with the event data:
// create Event Calendar
new eventCalendar.EventCalendar("#root", {
editorValidation: event => {
if (!event.Text) return "Text is required";
if (!event.text) return "Text is required";
}
// other configuration parameters
});
~~~

**Change log:** The ***editorValidation*** property was added in v2.2
**Change log:** The ***editorValidation*** property was added in v2.1.3
2 changes: 1 addition & 1 deletion docs/guides/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ To validate data entered into editor fields, you can use the [`editorValidation`
// create Event Calendar
new eventCalendar.EventCalendar("#root", {
editorValidation: event => {
if (!event.Text) return "Text is required";
if (!event.text) return "Text is required";
}
// other configuration parameters
});
Expand Down
24 changes: 24 additions & 0 deletions docs/news/whats_new.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,30 @@ description: You can explore what's new in DHTMLX Event Calendar and its release

If you are updating Event Calendar from an older version, check [Migration to newer versions](news/migration.md) for details.

## Version 2.1.3

Released on October 31, 2023

### New functionality

- An ability to validate data entered in the edit panel fields

### New API

- #### Properties

- [`editorValidation`](../../api/config/js_kanban_editorvalidation_config)

### Fixes

- Incorrect display of events with duplicated ids. Duplicating id is not allowed
- Contents of Timeline label stretches the column and causes incorrect positions of events
- The `setLocale()` method doesn't work
- Timeline shows events that end before min-date of the time scale
- The **Today** line in Agenda view is displayed on top of datepicker calendar
- Wrong key for the **Assignees** label in the locale object
- The `dateTitle` template doesn't work in **Agenda** and **Year** views

## Version 2.1.2

Released on September 15, 2023
Expand Down

0 comments on commit e9b739b

Please sign in to comment.