Pending Review
Last Updated: 08 Nov 2018 07:24 by Markus
Markus
Created on: 08 Nov 2018 07:24
Category: Kendo UI for Angular 2+
Type: Feature Request
2
Use string enums
To change the topView or bottomView property I have to set the value as string. E.g. topView="month". To be typesave I like to use the CalendarViewEnum in my typescript code. When I bind the enum in the view, the enum-value is set.
But unfortunately the enum value is a number and not a string.
I must convert the enum value like:

public getBottomView(): string {
     return CalendarViewEnum[this._bottomView];
}

Live would be easier if string enums would be used.
0 comments