← 수업 제작 도구
홈 › Components › Multiple Choice and Checkboxes

Multiple Choice and Checkboxes

원본: Computation Layer 문서(Multiple Choice and Checkboxes). 문서의 Try It 예제가 가리키는 화면 21개를 기록했고, 화면마다 CL 코드를 한국어로 풀어 썼다.

문서의 항목 24개 가운데 Try It 예제가 없는 3개(resetLabel, disableChange, isSelectedList)는 화면이 없다. 표의 "종류" 칸은 편집기 화면에 표시된 구성요소 이름을 그대로 적었고, 같은 이름의 객관식 구성요소가 화면에 따라 "체크박스" 또는 "객관식 문제"로 표시된다. 화면 10의 이름 "Choice.ShowExplain [sink["는 원본 Try It 화면 제목 그대로이다.

화면이름CL 수문서 항목 설명 (원문 일부)
1Choice.isSelected [source]2Gets a Boolean that describes whether or not a particular multiple choice option has been selected, given the index of that option, starting…
2Choice.timeSinceSubmit [source]1Gets the seconds (plus milliseconds) since the "Submit" button was pressed.
3Choice.submitted [source]1Gets a Boolean value that indicates whether or not the multiple choice component has been submitted.
4Choice.explainContent [source]1Content of the "explain" text box.
5Choice.submitCount [source]2Gets the number of times the multiple choice component has been submitted.
6Choice.choiceContent [source]2Gets the string content for choice with the provided index.
7Choice.choiceContent [sink]2Sets the content for a given multiple choice option, indexed starting with 1. (This only works if the multiple choice option at this index i…
8Choice.initialText [sink]2Sets the initial value of the text input for explain type multiple choice.
9Checkboxes.prompt [sink]1Sets the small italicized prompt above the choices. If blank, no prompt will show up. If this sink is unused and the choice type is multi-se…
10Choice.ShowExplain [sink[1Should we ask students to explain their answer?
11Choice.maxSelectedChoices [sink]1Sets how many choices a student is allowed to select. Only applies to Checkbox components.
12Choice.explainPrompt [sink]2Sets a string that replaces the generic "Explain your thinking" prompt on "explain" multiple choice components.
13Choice.maxButtonsPerRow [sink]2Takes a number from 1 to 10, and updates the layout to not allow more than that many buttons in a row. Note that built-in wrapping behavior …
14Choice.submitLabel [sink]2Specify a label for the submit button.
15Choice.showSubmitButton [sink]2When true, force show submit button. When false, force hide submit button, unless a source relies on it.
16Choice.correct [sink]2Sets a Boolean value that determines whether or not a gray checkmark is displayed for the student's screen in the dashboard's summary view.
17Choice.warning [sink]2Sets a string that is displayed as a tooltip in the teacher dashboard attached to a warning icon.
18Choice.readOnly [sink]2Sets a Boolean value that determines whether or not a component will be ignored when determining a screen's correctness. If all components h…
19Choice.hidden [sink]2When true, this component will not be shown to students.
20Choice.resetOnChange [sink]3Specify a string value. If that value changes, the component resets.
21Choice.matchesKey [Source]2Returns whether response matches the answer key. If no answer key is provided, returns false.

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

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

종류이름한국어 해석영어 원문
sinkresetLabel재설정 링크에 표시할 글자(라벨)를 정한다.Specify a label for the reset link.
sinkdisableChange참이면 보기를 고르거나 이미 고른 것을 바꾸는 것을 막는다.When true, disable selecting a choice or changing an existing selection.
sourceisSelectedList어떤 보기가 선택되었는지를 나타내는 불리언 배열을 가져온다. 각 원소는 그 보기가 선택되었는지(true) 아닌지(false)에 해당한다.Gets a boolean array indicating which choices are selected. Each element corresponds to whether that choice is selected (true) or not (false).