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

화면 28. Graph.readOnly [sink]

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

화면 번호28 / 29
문서 항목 설명 (원문)Sets a Boolean value that determines whether or not a component will be ignored when determining a screen's correctness. If all components have a readOnly value of "true," we display a dash for the student's screen in the dashboard's summary view, indicating teachers can focus their efforts elsewhere.

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

화면 28 캡처

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

2. CL이 입력된 곳

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

번호이름종류CL 코드 원문, 번역, 설명
1레이블 없는 그래프그래프
# Read Only determines whether the dashboard should be
# showing any form of correctness. Here, we have set
# and "readOnly" only as an example. Simply type
# "readOnly: true" if you do not want any information
# to be shown in the dashboard from the component.
▷ Read Only는 대시보드가 정답 여부를 어떤 형태로든 보여 줄지를 정한다. 여기서는 예시로 "readOnly"를 정해 두었다. 구성요소의 정보를 대시보드에 전혀 표시하고 싶지 않다면 "readOnly: true"라고 쓰면 된다.

readOnly: readOnlyChoice.isSelected(2)
▶ 읽기 전용 여부(readOnly)는 객관식 readOnlyChoice의 2번 보기("readOnly: true")가 선택되었는지를 알려 주는 값(readOnlyChoice.isSelected(2))으로 한다.
readOnlyChoice.isSelected(2)는 2번 보기가 선택되었는지를 알려 준다. readOnly가 참이면 이 구성요소는 화면의 정답 여부 계산에서 제외되므로, 2번을 고르면 이 그래프는 정답 여부 계산에서 제외된다.
2readOnlyChoice객관식 문제
readOnly: true
▶ 이 객관식의 읽기 전용 여부(readOnly)는 true로 한다.
true이므로 이 객관식은 화면의 정답 여부 계산에서 항상 제외된다.