new AddCourse(handleAddCourseModal, getCourses) → {Element}
The AddCourse component displays a form for adding a new course to the system.
Parameters:
Name | Type | Description |
---|---|---|
handleAddCourseModal |
||
getCourses |
- Source:
Returns:
- Type
- Element
Methods
(inner) formatRosterError(input)
Formats the roster file error.
Parameters:
Name | Type | Description |
---|---|---|
input |
- Source:
(inner) getCurrentSemester() → {number}
Determines the current semester based on the current date.
- Source:
Returns:
- Type
- number
(inner) getCurrentYear() → {number}
Determines the current year based on the current date.
- Source:
Returns:
- Type
- number
(inner) getFutureSemesters()
Converts semester names to their corresponding integer codes.
- Source:
(inner) getNextSemester(currentSemester) → {string}
Returns the next semester given the current semester.
Parameters:
Name | Type | Description |
---|---|---|
currentSemester |
- Source:
Returns:
- Type
- string
(inner) handleSemesterChange()
Handles the change of the semester.
- Source:
(inner) handleSubmit(e)
Handles the form submission.
Parameters:
Name | Type | Description |
---|---|---|
e |
- Source: