← 수업 제작 도구
홈 › Components › Table (표)

Table (표)

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

코드 주석과 코드가 다른 곳이 있다. 화면 14의 주석은 정답 여부를 "lineTargetTable"에서 정의했다고 하지만 코드에서는 메모의 변수 isCorrect로 정의한다.

화면이름CL 수문서 항목 설명 (원문 일부)
1Table.cellContent [source]1cellContentrowIndex: number, columnIndex: number Gets the contents of a cell given a row index and column index. (Row index 1 is the first r…
2Table.cellNumericValue [source]1cellNumericValuerowIndex: number, columnIndex: number Gets the evaluated numeric value of that cell given a row index and column index. (Row…
3Table.columnNumericValues [source]1columnNumericValuescolumnIndex: number Gets the evaluated contents of each cell in a column and returns it as a number list given the column…
4Table.cellHasFocus [source]1cellHasFocusrowIndex: number, columnIndex: number Gets a Boolean value that indicates whether or not the student is editing a cell given the…
5Table.maxRows [sink]2maxRows Sets the number of rows the table will display.
6Table.disableRowChanges [sink]1disableRowChanges Sets a Boolean value that indicates whether or not the student can add or remove rows. Similar to fill-in-the-blank mode, …
7Table.cellContent [sink]1cellContentrowIndex: number, columnIndex: number Sets the contents of a cell given the row index and column index of the cell. (Row index 1 …
8Table.cellSuffix [sink]3cellSuffixrowIndex: number, columnIndex: number Adds a suffix to everything entered by the student. Recommended for inputs that expect a cer…
9Table.cellErrorMessage [sink]3cellErrorMessagerowIndex: number, columnIndex: number An error to show to the student. Note: This will not show up in the teacher dashboard.…
10Table.initialCellContent [sink]2initialCellContentrowIndex: number, columnIndex: number Sets the initial value of the cell at the row index and column index provided. This …
11Table.cellEditable [sink]3cellEditablerowIndex: number, columnIndex: number Overrides all other mechanisms of deciding whether the student can edit this cell.
12Table.cellDisableEvaluation [sink]1cellDisableEvaluationrowIndex: number, columnIndex: number Disable the evaluation of math typed by the student in this cell. Only affects ce…
13Table.correct [sink]3correct Sets a Boolean value that determines whether or not a gray checkmark is displayed for the student's screen in the dashboard's summar…
14Table.warning [sink]3warning Sets a string that is displayed as a tooltip in the teacher dashboard attached to a warning icon.
15Table.readOnly [sink]2readOnly Sets a Boolean value that determines whether or not a component will be ignored when determining a screen's correctness. If all com…
16Table.hidden [sink]1hidden When true, this component will not be shown to students.
17Table.resetOnChange [sink]3resetOnChange Specify a string value. If that value changes, the component resets.