Online demo: Perfect Widgets can run on TypeScript.

Ekaterina Nebogina

TypeScript is a new and evolving object oriented programming language developed and maintained by Microsoft Corp. This language is compiled to common JavaScript. It supports and implies static typing which allows determining of the compatibility errors on the compilation stage. TypeScript is compatible with common JavaScript and this makes it possible to use common JavaScript libraries such as Perfect Widgets offering JavaScript gauges and other data visualization controls.
 
PerfectWidgetsTypeScriptDemo_Blog
 
The only trick is that it’s necessary to connect to .d.ts definition files for compatibility validation. Availability of the .d.ts file provides the ability to display IntelliSense tooltips for classes of the used library.
 
This simple Perfect Widgets TypeScript demo shows how to connect your data visualization project to the .d.ts file in order to use Perpetuum gauges as well as how to use Perfect Widgets library with TypeScript: how to add a gauge to the page and how to interact with it from code.
 

November 25th, 2014

Leave a Comment