Hello friends,
Currently I have a problem, I have made options, I hope that when you click on each option and click on the SUBMIT button the tasks will be filtered according to the conditions. For example: type = 1 will display the tasks with type = 1 in DB. I have handled that when submit will push the types of the respective options up. Here is my code:
app.component.html
<bry-gantt
#gantt
[columns]="ganttConfig.columns"
[subGridConfigs]="ganttConfig.subGridConfigs"
[project]="ganttConfig.project"
[taskDrag]="ganttConfig.features.taskDrag"
[taskResize]="ganttConfig.features.taskResize"
[taskEdit]="ganttConfig.features.taskEdit"
[taskRenderer]="ganttConfig.taskRenderer"
[viewPreset]="ganttConfig.features.viewPreset"
[timeRanges]="ganttConfig.features.timeRanges"
[eventColor]="ganttConfig.features.eventColor"
</bry-gantt>
<div class="btn">
<form [formGroup]="taskForm" (ngSubmit)="submit()">
<p>
<select formControlName="taskSelect">
<option [ngValue]="null" disabled>Select type task</option>
<option
*ngFor="let taskSelect of tasksSelects"
[ngValue]="taskSelect.id"
>
{{ taskSelect.name }}
</option>
</select>
<button type="submit" class="btn-submit">Submit</button>
</p>
</form>
</div>