화면 8. Polypad.warning [sink]
원본: Computation Layer 문서(Polypad) · Try It (원본 화면)
| 화면 번호 | 8 / 9 |
|---|
| 문서 항목 설명 (원문) | warning Sets a string that is displayed as a tooltip in the teacher dashboard attached to a warning icon. |
|---|
1. 화면 캡처 (빨간 번호 = 아래 표의 번호)
화면에 적힌 영어 문구(원문):
- Drag the tiles into the drop zone to create a number less than 200.
2. CL이 입력된 곳
코드 안의 회색 줄은 원문 영어 주석이고, 파란 줄은 그 영어 주석의 번역이며, 연분홍 줄은 코드가 하는 일의 설명이다.
| 번호 | 이름 | 종류 | CL 코드 원문, 번역, 설명 |
| 1 | 레이블 없는 Polypad | 일부화면 POLYPAD | # This will set a warning on the Teacher Dashboard. When
# the message is set to blank ("") it will hide the warning.
▷ 교사 대시보드에 경고를 정한다. 메시지를 빈 글자("")로 정하면 경고를 숨긴다.
warning:
when this.value("sum") > 200 "Student has created a total greater than 200."
otherwise ""
▶ Polypad의 경고(warning)는 this.value("sum")이 200보다 크면 "Student has created a total greater than 200."(학생이 200보다 큰 합을 만들었다.)로, 그렇지 않으면 빈 글자로 한다. 경고는 교사 대시보드에서 경고 아이콘에 붙는 툴팁 글자가 된다. when은 조건을 차례로 확인해 처음 맞는 값을 쓴다.
|