EJ2 JavaScript method to get running version number of EJ Script?

Is there a method that you can dump to console that will tell you the version number of the script that you are running?  Something like:

var version = new ej();

console.log(version.version);

//Syncfusion 20.1.58 - Licensed

Thanks?


3 Replies

RS Ragunath Sukumaran Syncfusion Team June 24, 2022 03:24 PM UTC

Hi Mark,


We have validated your query and you can achieve your requirement by adding the below code to your project. Also, we have prepared a sample based on your requirement, you can get only the major release version such as (v20.1) as a string. For your convenience we have attached the sample, please refer to the below sample and the code snippet.


Sample: https://stackblitz.com/edit/kxwgce?file=index.ts


import { getVersion } from '@syncfusion/ej2-base';

 

let version = getVersion();

console.log(version);



Regards,

Ragunath S



MA Mark June 24, 2022 04:54 PM UTC

Thank you!



TJ Theveshwar Jayakumar Syncfusion Team June 27, 2022 05:42 AM UTC

Hi Mark, 


Thanks for the update.

Please let us know, If you have any quires.


Regards,

Theveshwar


Loader.
Up arrow icon