Skip to content
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
Gradebook
StudentQuiz 1 out of 20Mic lab out of 100Quiz 2 out of 20Final mix out of 100Average
Ana Putri89%
Budi Santoso44%, below pass
Cici Lestari97%
Dimas Pratama40%, below pass
Class average73%86%70%83%67%
  • students is the list of students, each with an id and a name. assignments is the list of assignments, each with an id, a title, and an optional max score (default 100).
  • v-model holds 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 labels or a label pack. The API table lists the keys.

Usage ​

ts
import { BlessGradebook } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
students*{ id: string; name: string; }[]—
assignments*BlessGradeTask[]—
editableboolean—let the teacher type scores
passnumber60the average in percent under which a student needs help
localestring"en"
labelsPartial<{ caption: string; student: string; average: string; classAverage: string; missing: string; low: string; scoreOf: (student: string, task: string) => string; outOf: (max: number) => string; }>—
modelValueBlessScores{}

Events

NamePayloadDescription
update:modelValue[value: BlessScores]

Released under the MIT License. Character names and artwork belong to their owners.