홈 › Components › Multiple Choice and Checkboxes
Multiple Choice and Checkboxes
원본: Computation Layer 문서(Multiple Choice and Checkboxes). 문서의 Try It 예제가 가리키는 화면 21개를 기록했고, 화면마다 CL 코드를 한국어로 풀어 썼다.
| 화면 | 이름 | CL 수 | 문서 항목 설명 (원문 일부) |
|---|---|---|---|
| 1 | Choice.isSelected [source] | 2 | Gets a Boolean that describes whether or not a particular multiple choice option has been selected, given the index of that option, starting… |
| 2 | Choice.timeSinceSubmit [source] | 1 | Gets the seconds (plus milliseconds) since the "Submit" button was pressed. |
| 3 | Choice.submitted [source] | 1 | Gets a Boolean value that indicates whether or not the multiple choice component has been submitted. |
| 4 | Choice.explainContent [source] | 1 | Content of the "explain" text box. |
| 5 | Choice.submitCount [source] | 2 | Gets the number of times the multiple choice component has been submitted. |
| 6 | Choice.choiceContent [source] | 2 | Gets the string content for choice with the provided index. |
| 7 | Choice.choiceContent [sink] | 2 | Sets the content for a given multiple choice option, indexed starting with 1. (This only works if the multiple choice option at this index i… |
| 8 | Choice.initialText [sink] | 2 | Sets the initial value of the text input for explain type multiple choice. |
| 9 | Checkboxes.prompt [sink] | 1 | Sets 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… |
| 10 | Choice.ShowExplain [sink[ | 1 | Should we ask students to explain their answer? |
| 11 | Choice.maxSelectedChoices [sink] | 1 | Sets how many choices a student is allowed to select. Only applies to Checkbox components. |
| 12 | Choice.explainPrompt [sink] | 2 | Sets a string that replaces the generic "Explain your thinking" prompt on "explain" multiple choice components. |
| 13 | Choice.maxButtonsPerRow [sink] | 2 | Takes 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 … |
| 14 | Choice.submitLabel [sink] | 2 | Specify a label for the submit button. |
| 15 | Choice.showSubmitButton [sink] | 2 | When true, force show submit button. When false, force hide submit button, unless a source relies on it. |
| 16 | Choice.correct [sink] | 2 | 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. |
| 17 | Choice.warning [sink] | 2 | Sets a string that is displayed as a tooltip in the teacher dashboard attached to a warning icon. |
| 18 | Choice.readOnly [sink] | 2 | Sets a Boolean value that determines whether or not a component will be ignored when determining a screen's correctness. If all components h… |
| 19 | Choice.hidden [sink] | 2 | When true, this component will not be shown to students. |
| 20 | Choice.resetOnChange [sink] | 3 | Specify a string value. If that value changes, the component resets. |
| 21 | Choice.matchesKey [Source] | 2 | Returns whether response matches the answer key. If no answer key is provided, returns false. |
화면은 없지만 문서에 있는 항목 (3개)
| 종류 | 이름 | 한국어 해석 | 영어 원문 |
|---|---|---|---|
| sink | resetLabel | 재설정 링크에 표시할 글자(라벨)를 정한다. | Specify a label for the reset link. |
| sink | disableChange | 참이면 보기를 고르거나 이미 고른 것을 바꾸는 것을 막는다. | When true, disable selecting a choice or changing an existing selection. |
| source | isSelectedList | 어떤 보기가 선택되었는지를 나타내는 불리언 배열을 가져온다. 각 원소는 그 보기가 선택되었는지(true) 아닌지(false)에 해당한다. | Gets a boolean array indicating which choices are selected. Each element corresponds to whether that choice is selected (true) or not (false). |