ng2-gantt
Version:
Angular 2 Gantt
38 lines (35 loc) • 987 B
text/typescript
import { Component, Input } from '@angular/core';
@Component({
selector: 'gantt-header',
template: `
<div class="gantt-header">
<div class="gantt-header-title">
<div style="flex:1">{{ name }}</div>
<div>Started: {{ startDate | date: 'medium'}}</div>
</div>
</div>
`,
styles: [`
.gantt-header {
background-color: whitesmoke;
height: 40px;
border-bottom: 1px solid #e0e0e0;
}
.gantt-header-title {
padding: 12px;
display: flex;
flex-wrap:wrap;
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
}
.gantt-header-actions {
display: inline;
float: right;
padding: 6px;
}
`]
})
export class GanttHeaderComponent {
@Input() name:any;
@Input() startDate: Date;
}