Unplanned
Last Updated: 05 Mar 2021 13:26 by ADMIN
Lou
Created on: 05 Mar 2021 04:47
Category: Kendo UI for jQuery
Type: Feature Request
0
Provide property names to numberFormat properties "," and ".".

Hi,

  1. It would be desirable if the properties described by “,” and “.” were renamed so as to be typescript compatible so that if access to them was required, it could be done via eg:
myCulture.numberFormat.groupThousandsSeparator
 

And not

myCulture.numberFormat[ “,” ]

Refer to the properties as shown here in the kendo.all.d.ts file:


declare namespace kendo {
    function culture(): {
        name: string;
        calendar: {
            AM: string[];
            PM: string[];
            "/": string;
            ":": string;
            days: {
                names: string[];
                namesAbbr: string[];
                namesShort: string[];
            };
            months: {
                names: string[];
                namesAbbr: string[];
            };
            patterns: {
                D: string;
                F: string;
                G: string;
                M: string;
                T: string;
                Y: string;
                d: string;
                g: string;
                m: string;
                s: string;
                t: string;
                u: string;
                y: string;
            };
            firstDay: number;
            twoDigitYearMax: number;
        };
        calendars: {
            standard: {
                AM: string[];
                PM: string[];
                "/": string;
                ":": string;
                days: {
                    names: string[];
                    namesAbbr: string[];
                    namesShort: string[];
                };
                months: {
                    names: string[];
                    namesAbbr: string[];
                };
                patterns: {
                    D: string;
                    F: string;
                    G: string;
                    M: string;
                    T: string;
                    Y: string;
                    d: string;
                    g: string;
                    m: string;
                    s: string;
                    t: string;
                    u: string;
                    y: string;
                };
                firstDay: string;
                twoDigitYearMax: number;
            };
        };
        numberFormat: {
            currency: {
                decimals: number;
                ",": string;
                ".": string;
                groupSize: number[];
                pattern: string[];
                symbol: string;
            };
            decimals: number;
            ",": string;
            ".": string;
            groupSize: number[];
            pattern: string[];
            percent: {
                decimals: number;
                ",": string;
                ".": string;
                groupSize: number[];
                pattern: string[];
                symbol: string;
            };
        };
    };

 
1 comment
ADMIN
Aleksandar
Posted on: 05 Mar 2021 13:26

Hi Lou,

Thank you for this suggestion as well. I have also converted this thread to a Feature Request so we can consider this update for a future release based on community interest.

As mentioned in the previous request, the typing definitions are part of the Kendo UI Core repository, this enables users to contribute to the repository by following the Contribution Guide. That being said, if you have already made changes to the file locally for adding the missing definitions, you could also open a Pull Request in the Kendo UI Core repository. We will then be able to review the changes, and if everything works correctly, we will merge the changes in the code base.

In case you have any additional questions, please do not hesitate to contact us. 

Regards,
Aleksandar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.