mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
added quiz popup form and displaying on month
This commit is contained in:
29
Management.Web/Shared/Semester/Day/QuizInDay.razor
Normal file
29
Management.Web/Shared/Semester/Day/QuizInDay.razor
Normal file
@@ -0,0 +1,29 @@
|
||||
@using Management.Web.Shared.Components.Quiz
|
||||
@inject DragContainer dragContainer
|
||||
@inject CoursePlanner planner
|
||||
@inject QuizEditorContext quizContext
|
||||
|
||||
@inherits DroppableQuiz
|
||||
|
||||
@code {
|
||||
|
||||
private void HandleDragStart()
|
||||
{
|
||||
dragContainer.DropCallback = dropCallback;
|
||||
}
|
||||
|
||||
private void HandleDragEnd()
|
||||
{
|
||||
dragContainer.DropCallback = null;
|
||||
}
|
||||
}
|
||||
|
||||
<div
|
||||
draggable="true"
|
||||
@ondragstart="HandleDragStart"
|
||||
@ondragend="HandleDragEnd"
|
||||
@onclick="@(() => quizContext.Quiz = Quiz)"
|
||||
role="button"
|
||||
>
|
||||
@Quiz.Name
|
||||
</div>
|
||||
Reference in New Issue
Block a user