Hello, i’m trying to add my own list of users instead of doctor’s name,
<span style=”text-decoration: underline;”>I declared it as below :</span>
<div>
<div>resources: SchedulerResource[] = []</div>
</div>
<div></div>
<div><span style=”text-decoration: underline;”>and in ngOnInit</span> :</div>
<div></div>
<div>
<div>ngOnInit(): void {</div>
<div> this.userManagementService.allUsersWhereRoleUSER().subscribe((user:any) => {</div>
<div> for (let i = 0; i < user.body.length; i++) {</div>
<div> this.resources.push({</div>
<div> label: ‘Doctors’,</div>
<div> value: ‘doctorId’,</div>
<div> dataSource: [{</div>
<div> label:user.body[i].login,</div>
<div> id:user.body[i].id</div>
<div> }</div>
<div> ]</div>
<div> }); ..</div>
</div>
<div></div>
<div><span style=”text-decoration: underline;”>and as result,</span> it display only the first user’s name knowing that i have 5 users.</div>
<div></div>
<div>thank you.</div>