0.2.0 • Published 6 years ago

tss-img-lib v0.2.0

Weekly downloads
82
License
-
Repository
-
Last release
6 years ago

Install the package using the following command


npm i tss-img-lib


After installing declare the img-lib module in app.module.ts


import {ImgLibModule} from 'tss-img-lib';


You need to download primeng and font-awesome node modules from npm if it is not installed in your project. The commands for installing primeng and font-awesome


  • npm install primeng --save
  • npm install font-awesome --save

If primeng and font-awesome are already installed then import the following in app.module.ts


  • import {DialogModule} from 'primeng/dialog';
  • import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
  • import {ButtonModule} from 'primeng/button';

After importing all the modules in app.module.ts make sure they are imported in Imports tag in @NgModule


Now in-order to use the img-lib module to display the image send the options array by calling the selector in the required html tag in the following way


<lib-view [options]="options"></lib-view>


In options variable send the required option like source,height,width etc.The following options you can send and based on the data the image will render


The options variable show be binded to Imageproperties interface by the following declarations


options: Imageproperties;


It is imported in the following way


import { Imageproperties } from 'tss-img-lib/lib/view/imageproperties';


The options json is


this.options={ id:number source:string description:string width:number height:number positionX:number positionY:number className:string style:string dataset:any datasetColumn:any alternateText:any rollOverimage:any rollOverStyle:any html:any code:any opacity:number link:string hasTooltip (yes|no):any tooltip (tooltip text come here...):any }


0.2.0

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.7

6 years ago

0.0.8

6 years ago

0.0.6

6 years ago

0.0.4

6 years ago

0.0.5

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago