dnp-timegrid
TypeScript icon, indicating that this package has built-in type declarations

0.0.17 • Public • Published

DnpTimegrid

This library will generate a github style calendar grid.

Component

selector: 'lib-dnp-timegrid',

@Input() data$: Observable<TimeGrid.Record[]>; @Input() config: TimeGrid.Config; @Input() scale ? = chroma.scale(['#ddd','#dbdff1', '#3f51b5']).domain([0,1, 15]); @ViewChild('timeGrid', { static: true }) timeGrid: ElementRef;

Configurations

export class Config {

domId?: string = '#gantt';
dateAttrs: {start:string, end: string} = {start:'Start', end:'End'};
showCount: boolean = false;
box?: {
  height?: number;
  width?: number;
} = { height: 20};

dimension?: { width?: number; height?: number } = {
  width: 800,
  height: 300
};
labels?: { width: number, height: number} = { width: 25, height: 25};
date?: {
  format?: {  momentIn: string };
} = {
  format: { momentIn: 'YYYY-MM-DD' }
};
tooltip ? : { show: boolean, attrs?: string[], func?: Function} = {show: true};
events?: { click?: Subject<any> };

}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.172latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.172
0.0.160
0.0.150
0.0.140
0.0.130
0.0.120
0.0.111
0.0.100
0.0.91
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i dnp-timegrid

Weekly Downloads

4

Version

0.0.17

License

none

Unpacked Size

110 kB

Total Files

16

Last publish

Collaborators

  • tarundhillon