Class: FlashcardComponent

FlashcardComponent()

FlashcardComponent FlashcardComponent - A React component for managing flashcards. This component allows users to view, add, edit, and delete flashcards and their subjects. It also provides navigation to flashcard details and associated quizzes.

Constructor

new FlashcardComponent()

Source:

Methods

(static) filteredFlashcards(subject) → {Array}

Filters flashcards based on the search query.
Parameters:
Name Type Description
subject string The subject to filter flashcards under.
Source:
Returns:
An array of filtered flashcards.
Type
Array

(static) handleAdd()

Handles the action when the add button is clicked.
Source:

(static) handleAddTopic()

Handles adding a new topic.
Source:

(static) handleClearSearch()

Clears the current search query.
Source:

(static) handleDelete(topicName)

Handles the deletion of a topic.
Parameters:
Name Type Description
topicName string The name of the topic to delete.
Source:

(static) handleEdit()

Handles editing an existing topic.
Source:

(static) handleFlashcardClick(topicName)

Navigates to the flashcard details page.
Parameters:
Name Type Description
topicName string The name of the topic.
Source:

(static) handleQuizClick(topicName)

Navigates to the associated quiz page.
Parameters:
Name Type Description
topicName string The name of the topic.
Source:

(static) handleSearchChange(event)

Handles changes to the search field.
Parameters:
Name Type Description
event Object The event object from the search input field.
Source: