Calm motion: animations on this site only fade, with no movement
Gradebook
The scores of each student for each assignment, with averages and missing work
Lets a teacher enter scores and see who needs help. A student sees one row of it in a data table or a list.
Basic
| Student | Quiz 1 out of 20 | Mic lab out of 100 | Quiz 2 out of 20 | Final mix out of 100 | Average |
|---|---|---|---|---|---|
| Ana Putri | 89% | ||||
| Budi Santoso | 44%, below pass | ||||
| Cici Lestari | 97% | ||||
| Dimas Pratama | 40%, below pass | ||||
| Class average | 73% | 86% | 70% | 83% | 67% |
studentsis the list of students, each with anidand aname.assignmentsis the list of assignments, each with anid, atitle, and an optionalmaxscore (default 100).v-modelholds the scores by student id and then by assignment id. A score that is not there is missing work.- The average of a student is the mean of the shares, and missing work counts as zero. If it is under
pass(default 60%), it gets a mark, the danger color, and the words "below pass" for screen readers. - The last row gives the class average of each assignment from the scores that are in, and the mean of the student averages.
- With
editable, each score is a number field with a name such as "Quiz 1 score for Ana". A score over the top is cut to the top. An empty field is missing work. - The table scrolls sideways on a narrow screen, and the names stay in view.
- Change the words with
labelsor a label pack. The API table lists the keys.
Usage
ts
import { BlessGradebook } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
students* | { id: string; name: string; }[] | — | |
assignments* | BlessGradeTask[] | — | |
editable | boolean | — | let the teacher type scores |
pass | number | 60 | the average in percent under which a student needs help |
locale | string | "en" | |
labels | Partial<{ caption: string; student: string; average: string; classAverage: string; missing: string; low: string; scoreOf: (student: string, task: string) => string; outOf: (max: number) => string; }> | — | |
modelValue | BlessScores | {} |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: BlessScores] |