← 수업 제작 도구
홈 › Components › Graph and Graphing Calc › 화면 26

화면 26. Graph.warning [sink]

원본: Computation Layer 문서(Graph) · Try It (원본 화면)

화면 번호26 / 29
문서 항목 설명 (원문)Sets a string that is displayed as a tooltip in the teacher dashboard attached to a warning icon.

1. 화면 캡처 (빨간 번호 = 아래 표의 번호)

화면 26 캡처

화면에 적힌 영어 문구(원문):

2. CL이 입력된 곳

코드 안의 회색 줄은 원문 영어 주석이고, 파란 줄은 그 영어 주석의 번역이며, 연분홍 줄은 코드가 하는 일의 설명이다.

번호이름종류CL 코드 원문, 번역, 설명
1레이블 없는 그래프그래프
# This will set a warning on the Teacher Dashboard. When
# the message is set to blank ("") it will hide the warning.
▷ 교사 대시보드에 경고를 표시한다. 메시지를 빈 글자("")로 정하면 경고가 숨겨진다.

warning:
  when this.number("b") = 0 "Student has set the circumference to zero."
  otherwise ""
▶ 교사 대시보드의 경고(warning)는 그래프 변수 "b"의 값(this.number("b"))이 0이면 "Student has set the circumference to zero."(학생이 원주를 0으로 정했다.), 아니면 빈 글자(경고 숨김)로 한다.
when은 조건을 차례로 확인해 처음 맞는 값을 쓰고, warning은 교사 대시보드의 경고 아이콘에 말풍선으로 글자를 표시한다.