홈 › Components › Free Response (자유 답변)
Free Response (자유 답변)
원본: Computation Layer 문서(Free Response (자유 답변)). 문서의 Try It 예제가 가리키는 화면 9개를 기록했고, 화면마다 CL 코드를 한국어로 풀어 썼다.
| 화면 | 이름 | CL 수 | 문서 항목 설명 (원문 일부) |
|---|---|---|---|
| 1 | Input.content [source] | 1 | content Gets the student input value as a string. |
| 2 | Input.timeSinceSubmit [source] | 1 | timeSinceSubmitmaxTime: number Gets the seconds (plus milliseconds) since the submit button was pressed. |
| 3 | Input.submitted [source] | 1 | submitted Gets a Boolean value indicating whether or not the input has been submitted. |
| 4 | Input.initialText [sink] | 1 | initialText Sets the initial value of the text input. |
| 5 | Input.placeholderText [sink] | 1 | placeholderText Sets the placeholder text of the input. |
| 6 | Input.submitLabel [sink] | 2 | submitLabel Specify a label for the submit button. |
| 7 | Input.showSubmitButton [sink] | 1 | showSubmitButton When true, force show submit button. When false, force hide submit button, unless a source relies on it. |
| 8 | Input.submitDisabled [sink] | 1 | submitDisabled Disable the submit button. Note: Even if set to false, the input button will be disabled if the input is empty. |
| 9 | Input.hidden [sink] | 2 | hidden When true, this component will not be shown to students. |
화면은 없지만 문서에 있는 항목 (8개)
| 종류 | 이름 | 한국어 해석 | 영어 원문 |
|---|---|---|---|
| sink | resetLabel | 재설정 링크에 표시할 글자(라벨)를 정한다. | Specify a label for the reset link. |
| sink | clearOnReset | resetOnChange와 함께 써야 한다. 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. |
| sink | correct | 교사 대시보드 요약에서 학생의 화면에 회색 체크 표시를 보여 줄지를 참/거짓으로 정한다. | 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. |
| sink | warning | 교사 대시보드에서 경고 아이콘에 붙는 툴팁 글자를 정한다. | Sets a string that is displayed as a tooltip in the teacher dashboard attached to a warning icon. |
| sink | readOnly | 화면의 정답 판정에서 이 구성요소를 무시할지를 참/거짓으로 정한다. 모든 구성요소의 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. |
| sink | resetOnChange | 글자 값을 정한다. 그 값이 바뀌면 구성요소가 재설정된다. | Specify a string value. If that value changes, the component resets. |
| source | richText | 서식을 그대로 보존한 서식 있는 글(rich text) 내용을 가져온다. | Gets Rich text content preserving formatting |
| source | submitCount | 입력이 제출된 횟수를 가져온다. | Gets the number of times the input has been submitted. |