We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Typescript definitions ej.widgets.all.d.ts with a lot of errors

Thread ID:

Created:

Updated:

Platform:

Replies:

118106 Feb 1,2015 07:37 PM UTC Feb 6,2015 01:07 PM UTC JavaScript 7
loading
Tags: ejRibbon
RL
Asked On February 1, 2015 07:37 PM UTC

Hi, I'm getting 1092 errors when I add the ej.widgets.all.d.ts file to my project.
for example the interface
   interface DialogPositon {
       X?: number;
       Y?: number;
   }

is declared twice, lines 849 and 2355.

Is there an updated file?
thanks

Harikrishnan P [Syncfusion]
Replied On February 3, 2015 10:06 AM UTC

Hi Rui,

 

We were able to reproduce the problem and we considered this issue “TypeScript file throws error” as bug, also have logged a report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates.

 

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

 

Please let me know if you have any questions.

 

Regards,

HariKrishnan


RL
Replied On February 4, 2015 03:12 PM UTC

great, so far I've managed to fix most of the problems and have the definitions working.

I also consider that the property width in the interface RibbonOptions should be string and not number.

interface RibbonOptions {
        width?: string; //number;

RL
Replied On February 4, 2015 03:29 PM UTC


Shouldn't the tabs be of type array, wewill have an array of tabs.
I truly think that the name RibbonTabs for the interface doesn't seem correct, it would be better IMHO, to be named as IRibbonTab  (not tabs), and starting with an I.

interface RibbonOptions {
        width?: string;

        tabs?: Array<RibbonTabs>; //RibbonTabs






RL
Replied On February 4, 2015 04:48 PM UTC

in your javascript you have:

    ej.Ribbon.alignType = {
        rows: "rows",
        columns: "columns"
    };

but in the definition you have:
enum RibbonAlignType {
        rows,
        columns,
    }

This clearly does not match. :(

RL
Replied On February 4, 2015 04:56 PM UTC

in your javascript you have:

    ej.Ribbon.alignType = {
        rows: "rows",
        columns: "columns"
    };

but in the definition you have:
enum RibbonAlignType {
        rows,
        columns,
    }

This clearly does not match. :(

To overcome this in your definition file I've added the following:

declare module ej.Ribbon {
    enum alignType {
        rows,
        columns,
    }
}

and changed the declaration of RibbonTabGroups to be:

interface RibbonTabGroups {
        contentID?: string;
        text?: string;
        type?: string;
        alignType?: ej.Ribbon.alignType; //RibbonAlignType
        customContent?: string;
        enableGroupExpander?: boolean;
        content?: RibbonTabContent;
    }

Shanmugaraja K [Syncfusion]
Replied On February 5, 2015 04:13 PM UTC

Hi Rui Lima,

 

Thanks for your suggestions. We are validating on this and we will update you further details on Feb 6,2015.

 

Please let us know if you need further assistance.

 

Regards,

Shanmugaraja K

Sarath Kumar P [Syncfusion]
Replied On February 6, 2015 01:07 PM UTC

Hi Rui,

 

We were able to reproduce the problem and we considered this issue “Typescript issues with ribbon” as bug, also have logged a report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates.

 

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

 

Please let me know if you have any questions.

 

Regards,

Sarath kumar P


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;