ng2-gantt
Version:
Angular 2 Gantt
40 lines (35 loc) • 679 B
text/typescript
export interface Project {
id: string;
name: string;
startDate?: Date;
tasks: Task[]
}
export interface Task {
id: string;
treePath: string;
parentId: string;
name: string;
resource?: string;
start: Date;
end?: Date;
percentComplete?: number;
status?: string;
}
export interface IGanttOptions {
scale?: IScale;
zooming?: string;
}
export interface IScale {
start?: Date;
end?: Date;
}
export interface IBarStyle {
status: string;
backgroundColor: string;
border: string;
progressBackgroundColor: string;
}
export enum Zooming {
hours,
days
}