← 수업 제작 도구
홈 › Components › Free Response (자유 답변)

Free Response (자유 답변)

원본: Computation Layer 문서(Free Response (자유 답변)). 문서의 Try It 예제가 가리키는 화면 9개를 기록했고, 화면마다 CL 코드를 한국어로 풀어 썼다.

화면 5와 7은 자유 답변 구성요소 하나만 있는 화면이라 "화면에 적힌 영어 문구"가 없다.

화면이름CL 수문서 항목 설명 (원문 일부)
1Input.content [source]1content Gets the student input value as a string.
2Input.timeSinceSubmit [source]1timeSinceSubmitmaxTime: number Gets the seconds (plus milliseconds) since the submit button was pressed.
3Input.submitted [source]1submitted Gets a Boolean value indicating whether or not the input has been submitted.
4Input.initialText [sink]1initialText Sets the initial value of the text input.
5Input.placeholderText [sink]1placeholderText Sets the placeholder text of the input.
6Input.submitLabel [sink]2submitLabel Specify a label for the submit button.
7Input.showSubmitButton [sink]1showSubmitButton When true, force show submit button. When false, force hide submit button, unless a source relies on it.
8Input.submitDisabled [sink]1submitDisabled Disable the submit button. Note: Even if set to false, the input button will be disabled if the input is empty.
9Input.hidden [sink]2hidden When true, this component will not be shown to students.

화면은 없지만 문서에 있는 항목 (8개)

이 항목들은 문서의 항목 표에 Try It 예제가 없어서 화면을 만들지 않았다. 영어 설명 원문과 한국어 해석만 적는다.

종류이름한국어 해석영어 원문
sinkresetLabel재설정 링크에 표시할 글자(라벨)를 정한다.Specify a label for the reset link.
sinkclearOnResetresetOnChange와 함께 써야 한다. resetOnChange로 구성요소의 제출 버튼이 재설정될 때 내용을 지울지를 참/거짓으로 정한다. 참이면 재설정할 때 입력한 글도 지운다.Must be used in conjunction with resetOnChange. Gets a Boolean value indicating whether to clear content when the component's submit button is reset via resetOnChange. If true, reset also clears text input.
sinkcorrect교사 대시보드 요약에서 학생의 화면에 회색 체크 표시를 보여 줄지를 참/거짓으로 정한다.Sets a Boolean value that determines whether or not a gray checkmark is displayed for the student's screen in the dashboard's summary view.
sinkwarning교사 대시보드에서 경고 아이콘에 붙는 툴팁 글자를 정한다.Sets a string that is displayed as a tooltip in the teacher dashboard attached to a warning icon.
sinkreadOnly화면의 정답 판정에서 이 구성요소를 무시할지를 참/거짓으로 정한다. 모든 구성요소의 readOnly 값이 "true"이면 대시보드 요약에서 학생의 화면에 대시(-)를 표시해, 교사가 다른 곳에 힘을 쏟아도 된다는 것을 나타낸다.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.
sinkresetOnChange글자 값을 정한다. 그 값이 바뀌면 구성요소가 재설정된다.Specify a string value. If that value changes, the component resets.
sourcerichText서식을 그대로 보존한 서식 있는 글(rich text) 내용을 가져온다.Gets Rich text content preserving formatting
sourcesubmitCount입력이 제출된 횟수를 가져온다.Gets the number of times the input has been submitted.