Constructor
new QuizList(props) → {React.Component}
Parameters:
Name | Type | Description |
---|---|---|
props |
Object | Properties passed to the component including newQuizAdded. |
- Source:
Returns:
A component displaying a list of quizzes.
- Type
- React.Component
Methods
(static) handleClick(event, title)
Handles click event for quiz options, setting state for current quiz.
Parameters:
Name | Type | Description |
---|---|---|
event |
Object | The triggered event. |
title |
string | Title of the quiz for which options are being opened. |
- Source:
(static) handleClose()
Closes the options menu by setting its anchor element to null.
- Source:
(static) handleCloseDeleteDialog()
Closes the delete confirmation dialog.
- Source:
(static) handleCloseEditDialog()
Closes the edit dialog for editing a quiz title.
- Source:
(static) handleDeleteQuiz()
Deletes a quiz from the database and updates the local state to reflect this change.
- Source:
(static) handleEditQuizTitle()
Handles the updating of a quiz title, including updating the database and local state.
- Source:
(static) handleOpenDeleteDialog()
Opens the delete confirmation dialog for a selected quiz.
- Source:
(static) handleOpenEditDialog()
Opens the edit dialog for editing a quiz title.
- Source:
(static) handleQuizTitleClick(quizName)
Handles click event on a quiz title, navigating to the quiz page.
Parameters:
Name | Type | Description |
---|---|---|
quizName |
string | Name of the quiz to navigate to. |
- Source:
(static) toggleDrawer(anchor, open)
Toggles the visibility of the navigation drawer.
Parameters:
Name | Type | Description |
---|---|---|
anchor |
string | Drawer anchor position. |
open |
boolean | Indicates if the drawer should be open or closed. |
- Source: