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

화면 10. Table.initialCellContent [sink]

원본: Computation Layer 문서(Table (표)) · Try It (원본 화면)

화면 번호10 / 17
문서 항목 설명 (원문)initialCellContentrowIndex: number, columnIndex: number Sets the initial value of the cell at the row index and column index provided. This will unlock the cell and students can override the initial value. Note: Should be a valid latex string if setting for a math type of cell (default).

1. 화면 캡처 (빨간 번호 = 아래 표의 번호)

화면 10 캡처

화면에 적힌 영어 문구(원문):

2. CL이 입력된 곳

코드 안의 회색 줄은 원문 영어 주석이고, 파란 줄은 그 영어 주석의 번역이며, 연분홍 줄은 코드가 하는 일의 설명이다.

번호이름종류CL 코드 원문, 번역, 설명
1레이블 없는 그래프그래프
# Creates lists for the x and y values entered into the table.
▷ 표에 입력된 x 값과 y 값의 배열(List)을 만든다.
numberList("X"): table.columnNumericValues(1)
▶ 그래프의 숫자배열(numberList) X는 표 table의 1열 전체의 숫자배열(table.columnNumericValues(1))로 한다.
numberList("이름")은 그래핑 계산기의 변수를 주어진 숫자배열의 내용으로 정하고, columnNumericValues(열)은 그 열의 각 셀을 계산한 값을 숫자배열로 돌려준다.
numberList("Y"): table.columnNumericValues(2) ▶ 그래프의 숫자배열 Y는 표 table의 2열 전체의 숫자배열(table.columnNumericValues(2))로 한다. # Creates a number that matches the amount of time passed # since the button has been pressed. ▷ 버튼을 누른 뒤 지난 시간과 같은 숫자를 만든다. number("t_0"): button.timeSincePress(6) ▶ 그래프의 변수 t_0은 행동 버튼 button을 누른 뒤 지난 시간(button.timeSincePress(6))으로 한다.
number("이름")은 그래핑 계산기 안의 변수 값을 정하고, 괄호의 6은 세는 최대 시간이 6초라는 뜻이다. timeSincePress()는 버튼을 누른 뒤 지난 시간(초)을 알려 주며, 재설정 링크를 누르거나 같은 화면의 구성요소를 선택하거나 편집하면 0으로 돌아가고 기본으로 10초까지 센다.
2table표
# Sets the content of each of the cells (row, column) 
# to any string. In this case, the numbers shown below.
▷ 각 셀(행, 열)의 내용을 아무 글자로나 정한다. 여기서는 아래에 보이는 숫자들이다.

initialCellContent(1,1): "5"
▶ 1행 1열 셀의 처음 값(initialCellContent)은 "5"로 한다.
initialCellContent(행, 열)은 그 셀의 처음 값을 정하며, 셀의 잠금을 풀어 학생이 처음 값을 바꿀 수 있게 한다. 수식 종류 셀(기본값)에는 올바른 latex 글자여야 한다.
initialCellContent(2,1): "-7" ▶ 2행 1열 셀의 처음 값(initialCellContent)은 "-7"로 한다. initialCellContent(3,1): "-4" ▶ 3행 1열 셀의 처음 값(initialCellContent)은 "-4"로 한다. initialCellContent(4,1): "-7" ▶ 4행 1열 셀의 처음 값(initialCellContent)은 "-7"로 한다. initialCellContent(5,1): "5" ▶ 5행 1열 셀의 처음 값(initialCellContent)은 "5"로 한다. initialCellContent(1,2): "-6" ▶ 1행 2열 셀의 처음 값(initialCellContent)은 "-6"으로 한다. initialCellContent(2,2): "-5" ▶ 2행 2열 셀의 처음 값(initialCellContent)은 "-5"로 한다. initialCellContent(3,2): "3" ▶ 3행 2열 셀의 처음 값(initialCellContent)은 "3"으로 한다. initialCellContent(4,2): "3" ▶ 4행 2열 셀의 처음 값(initialCellContent)은 "3"으로 한다. initialCellContent(5,2): "4" ▶ 5행 2열 셀의 처음 값(initialCellContent)은 "4"로 한다.