Hameed2000 / Project_Boyd

0 stars 0 forks source link

Program Send Message Modal #8

Open Hameed2000 opened 2 years ago

Hameed2000 commented 2 years ago

Need to program the Send Message Modal located in the InstructorDashboard class page.

  1. Populate the teams list
  2. Create a list for selected teams
  3. Once teams are selected and a message is entered follow Send Message Instructions'

Instructions saving selected teams and attaching events to the button Create a list that stores any team that has been selected Create a function that takes the team as a parameter and adds the team to the selected list Attach the function to an onclick event on the button and pass the team for that button as a parameter

ONCLICK: https://docs.microsoft.com/en-us/aspnet/core/blazor/components/event-handling?view=aspnetcore-6.0 PASSING PARAMETERS TO ONCLICK: https://www.telerik.com/blogs/how-to-pass-arguments-to-your-onclick-functions-blazor


Do Later

Send Message Instructions

  1. Get each of the teams in SessionInfoList
  2. Populate the Message property with the message the instructor wrote
  3. Invoke the StateHasChanged delegate in the SessionTeam class of the teams you sent the message to

Recieve Message Instructions

  1. Navigate to"StudentMessage", Component >> StudentMessage
  2. This is the modal the teams will see when a message is sent to them
  3. I believe I programmed the code for this already but if there's anything missing just check here
HassenEmerson commented 2 years ago

Didn't use the separate class to track the teams that are selected cuz it can be done with a string