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> };

}

Readme

Keywords

none

Package Sidebar

Install

npm i dnp-timegrid

Weekly Downloads

2

Version

0.0.17

License

none

Unpacked Size

110 kB

Total Files

16

Last publish

Collaborators

  • tarundhillon