<div class="control-section">
<ejs-gantt id="resources" [dataSource]="data" [taskFields]="taskSettings" [treeColumnIndex]="0"
[splitterSettings]="splitterSettings" [labelSettings]="labelSettings" [editSettings]="editSettings" [enableContextMenu]='true'
[rowHeight]='61' height="450px" [allowSelection]="true" [highlightWeekends]="true"
[toolbar]="toolbar" [resourceFields]="resourceFields" (rowDataBound)="rowDataBound($event)" (dataBound)="actionComplete($event)"
[timelineSettings]="timelineSettings" [projectStartDate]='projectStartDate' [projectEndDate]='projectEndDate'
[resources]="resources" workUnit="Hour">
<e-columns>
<e-column field='TaskID' visible='false' width='0'>
<ng-template #template let-data>
<div class="e-treecolumn-container">
<span class="e-icons e-none"></span>
<span class="e-icons e-none"></span>
<span class="e-treecell"></span></div>
</ng-template>
</e-column>
<e-column field='TaskName' headerText='Name' width='180' headerTextAlign='left'>
<ng-template #template let-data>
<table style="width:180px;" *ngIf='data.taskData.IsSectionHeader'>
<tr>
<td>{{data.taskData.Bucket}}</td>
</tr>
</table>
<table style="width:180px;height: 50px" *ngIf='!data.taskData.IsSectionHeader && !data.taskData.BusinessObjectives'>
<tr>
<td>{{data.taskData.TeamName}}</td>
</tr>
<tr>
<th>{{data.taskData.TaskName}}</th>
</tr>
</table>
<div style="width:100%;height: 50px" *ngIf='!data.taskData.IsSectionHeader && data.taskData.BusinessObjectives'>
Great job! You don’t have any unplanned work.
</div>
</ng-template>
</e-column>
<e-column field='Details' headerText='Details' width='300' textAlign='center'>
<ng-template #template let-data>
<table style="width:300px;height: 50px;" *ngIf="!data.taskData.IsSectionHeader">
<tr>
<td style="width: 100px;">Allocated</td>
<td style="width: 100px;">Stories</td>
<td style="width: 100px;">Points</td>
</tr>
<tr>
<th style="color: red">{{data.taskData.Allocation}}%</th>
<th>{{data.taskData.StoriesCurrent}} of {{replaceEmpty(data.taskData.StoriesTotal)}}</th>
<th>{{data.taskData.PointCurrent}} of {{replaceEmpty(data.taskData.PointsTotal)}}</th>
</tr>
</table>
</ng-template>
</e-column>
<e-column field='StartDate' headerText='Start Date' width='120' headerTextAlign='center' textAlign='center'>
<ng-template #template let-data>
<table style="width:80px;height: 50px;" *ngIf="!data.taskData.IsSectionHeader">
<tr>
<td>
{{formatDate(data.taskData.StartDate)}}
</td>
</tr>
</table>
</ng-template>
</e-column>
<e-column field='ReleaseDate' headerText='Anticipated Release Date' width='120' headerTextAlign='center' textAlign='center'>
<ng-template #template let-data>
<table style="width:80px;height: 50px;" *ngIf="!data.taskData.IsSectionHeader">
<tr>
<td>
{{formatDate(data.taskData.ReleaseDate)}}
</td>
</tr>
</table>
</ng-template>
</e-column>
</e-columns>
<ng-template #taskbarTemplate let-data>
<div class="e-gantt-child-taskbar">
<div class="template-row">
<div class="e-complete" *ngIf="data.taskData.Complete > 0" [ngStyle]="{ width: data.taskData.Complete + '%' }">
<span class="e-task-label">{{ data.taskData.Complete }}% Complete</span>
</div>
<div class="e-in-progress" *ngIf="data.taskData.InProgress > 0" [ngStyle]="{ width: data.taskData.InProgress + '%' }">
<span class="e-task-label">{{ data.taskData.InProgress }}% In-Progress</span>
</div>
<div class="e-planned" *ngIf="data.taskData.Planned > 0" [ngStyle]="{ width: data.taskData.Planned + '%' }">
<span class="e-task-label">{{ data.taskData.Planned }}% Planned</span>
</div>
<div class="e-not-planned" *ngIf="data.taskData.NotPlanned > 0" [ngStyle]="{ width: data.taskData.NotPlanned + '%' }">
<span class="e-task-label">{{ data.taskData.NotPlanned }}% Not Planned*</span>
</div>
</div>
</div>
</ng-template>
</ejs-gantt>
</div>