Suite 5.1 Released: TypeScript, JSON and Promise API Support for All Components

| Comments (10)

We are glad to introduce a new version of dhtmlxSuite – the version 5.1 brings you such helpful updates as TypeScript support, availability of JSON data loading for all components, and Promise API for Ajax requests.

Download dhtmlxSuite 5.1, JavaScript UI library for building high-performance web applications.

TypeScript Support

If you have ever used TypeScript, there is no need for us to list its advantages – you already know them. And today you’ll be happy to learn that starting from the version 5.1, dhtmlxSuite officially supports TypeScript.

TypeScript allows you to write complex solutions that are easier developed and tested in future. In case of dhtmlx it means that:

  • You can use type checking to write a more stable code;
  • All modern IDE will provide suggestions and code completion for DHTMLX component.

The typescript definitions are included in the Suite package. You can find dhtmlx.d.ts file in the codebase folder of the package.

Also, we have updated DHTMLX Optimus, our micro framework for DHTMLX based apps, to the version 0.4. Now it can be used with TypeScript as well.

Promise API added

With dhtmlxSuite 5.1, you can use promise API when working with Ajax requests. Promise objects helps you to structure the logic of your application and significantly reduce code. All existing data loading API was updated to return promises. Changes are backward compatible, so you need not change anything in the already existing code.

You can find more information of how to work with promises and dhtmlx in our documentation.

JSON Data Loading and Data Saving

While most DHTMLX components already support JSON data loading, starting from version 5.1 this behavior covers all functionality. Now, if you want to use JSON, you can use it everywhere, for data loading and for data saving. There are no operations which are limited to XML data anymore.

What is more, now dataProcessor can be used in REST-JSON mode, to simplify integration with modern server-side frameworks.

Related resources:

This update is available for both Standard and PRO Editions.

Comments

  1. Gemorroj April 20, 2017 at 11:32 am

    thanks!

    • Aras Kairys (DHTMLX team) April 27, 2017 at 6:30 pm

      Hi!
      We are glad to know that you’ve enjoyed the new version.

  2. masdju April 22, 2017 at 12:01 pm

    Great Job bro! For dataProcessor using with REST-JSON mode, can i still use PHP Connector v15 or need an update?

    • Aras Kairys (DHTMLX team) April 27, 2017 at 6:35 pm

      This feature is incompatible with the dhtmlxConnector. You’ll have to create your own custom server-side solution.
      We are working on the samples of the server-side integration at the moment, please follow our blog for the updates.

      • masdju April 27, 2017 at 9:25 pm

        Thanks for the info. Caiyoo!

  3. Peter May 27, 2017 at 6:52 pm

    The TypeScript dhtmlx.d.ts file is not included with the Pro version, it is based on 5.0.8, and the internal link in the file to github is broken.

    I’ve been working with TypeScript; some of the .js code it spits out is abhorrent. Where before I could write beautiful JavaScript, I now have to learn a new syntax more familiar to Java and C# programmers. Makes me wonder why? :)
    The only redeeming quality I see in TypeScript is that I can use ES6 now.

    How married are you to TypeScript? Are you just testing the waters or is this the future?

    • Aras Kairys (DHTMLX team) May 29, 2017 at 1:51 pm

      Hi Peter,
      Thank yo for your feedback.
      Please try to update your package, dhtmlx.d.ts is included. dhtmlxSuite 5.1 supports TypeScript. There was a sample with v.5.0.8, and we’ve also updated it. And can you please specify what “internal link in the file to github” is broken? (please contact me via support@dhtmlx.com)
      DHTMLX products are fully JavaScript solutions, and we don’t plan to change this. Some of our clients asked for the TypeScript support, and that’s the reason why we added this feature.

  4. masdju June 6, 2017 at 4:52 pm

    Hi,, i’am using typescript and have no found promise declaration in *.d.ts file. Can help me?

    • Aras Kairys (DHTMLX team) June 7, 2017 at 11:54 am

      Hi Masdju,
      Unfortunately, promise API for Ajax requests is not supported.

      • masdju June 7, 2017 at 2:46 pm

        Did you mean about this part “Promise API added”? I try code new dhx.promise got error dhx.promise is not a constructor

Leave a Reply