1.3.0 • Published 6 years ago

dimple-widget-library v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago
  1. How to use this library Below are steps to add library in angular app A. Install Node js latest version B. Command to install is = “npm install dimple-widget-library" --save” C. After successful installed than use it in your application like I. In Angular js 1 a. Var chartLib = dimple-widget-library".charts.chart() = This is name of library in package.json including name of namespace and name of class. Charts is namespace and chart is main class name .
    b. chartLib. barChartCreation( = this will call method in class to draw barchart.

II. In Angular js 2 and more a. import * as dimplelib from " dimple-widget-library" "; = this will import library in application. c. var chartLib =new dimplelib.charts.chart(); = this will initialize the type script library. In this name of library in package.json including name of namespace and name of class. Charts is namespace and chart is main class name .
b. chartLib. barChartCreation( = this will call method in class to draw barchart.

  1. How to contribute in this library Below are steps to contributes in the library A. You need to have access of npm location with user name , password and email id B. Git clone the url in to your compute folder Git clone https://github.build.ge.com/ctt-hcdd2/dimple-widget-library.git C. Do the coding and add test case D. Commit and push code E. Open node.js command prompted I. At first time . file is empty . we need to add the details in it II. Type the command “npm adduser”. Give user name ,password and email id which is use to login npm web side . III. Use command “npm publish” to publish new change in npm. F. To compile it use tsc

  2. Type script library structure A. Scr = this folder will contain all the files . index. Js is staring point . whenever we new widget added for that new .ts file and call the file in to widgetlib.ts with anu method. B. Dist = folder will contain all output file.

  1. to add css in library add css file and run folling command tcm css
1.3.0

6 years ago