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. Image for the cookie policy date

No intellisense when needed to use the javascript

Hello! Is there a way to enable intellisense when i need to create javascript functions that relay on EJ2?

1 Reply

MS Mydeen S N Syncfusion Team April 9, 2019 11:52 AM

Hi Borislav , 
Thank you for contacting Syncfusion support. 
Visual Studio 2017 provides improved JavaScript IntelliSense based on information declared in TypeScript definition files (or .d.ts files). 
Follow the instruction below to enable IntelliSense for create JavaScript functions that relay on EJ2 
  1. Add the ej2.d.ts definition files to your project.
You can obtain ej2.d.ts file from the following sources: 
From the npm package 
  • Execute the command below in the npm CLI to install the package.
    npm i @syncfusion/ej2-js-es5
  1. Add the following string to each script file or script block where you are going to use IntelliSense:

 ///<reference path="ej2.d.ts" 
  1. <script type="text/javascript">
  2.     /// <reference path="../../ej2.d.ts"/>
  3.     var ajax = new ej.base.Ajax("index.html", "GET", true);
  4. </script>
you can now use IntelliSense 
Please let me know, if you have any concerns. 
Mydeen S N 

Live Chat Icon For mobile
Up arrow icon