← 수업 제작 도구
홈 › Components › Ordered List (정렬 리스트)

Ordered List (정렬 리스트)

원본: Computation Layer 문서(Ordered List (정렬 리스트)). 문서의 Try It 예제가 가리키는 화면 11개를 기록했고, 화면마다 CL 코드를 한국어로 풀어 썼다.

코드 주석과 코드가 다른 곳이 있다. 화면 3·8의 `this.itemAtIndex(4) = 4`(주석은 "첫 번째 항목이 첫 번째 자리"), 화면 6의 `i_{nitial}`(주석은 `i_{ndex}`), 화면 7의 기울기 1 또는 -1 처리(주석은 "1 또는 -1일 때 숨긴다")가 그 예이다.

화면이름CL 수문서 항목 설명 (원문 일부)
1Ordered List.matchesKey [source]1matchesKey Returns whether this matches the key (if provided).
2Ordered List.order [source]1order Returns a numberList of where each item currently is (indexOfItem).
3Ordered List.itemAtIndex [source]1itemAtIndexitemIndex: number Returns the starting item index of the item that's at the given index (indexed starting with 1).
4Ordered List.textAtIndex [source]1textAtIndexitemIndex: number Returns the string for the item that's at the given index (indexed starting with 1).
5Ordered List.indexOfItem [source]1indexOfIteminitialItemIndex: number Returns the sorted index of the item that started with the given index (indexed starting with 1).
6Ordered List.initialOrder [sink]2initialOrder Takes a numberList of where each item should start. Accepts any numberList as an order (with ties leaving two items in order). …
7Ordered List.itemContent [sink]2itemContentitemIndex: number Sets the content for a given item, indexed starting with 1. (This only works if the item at this index exists.)
8Ordered List.correct [sink]1correct Sets a Boolean value that determines whether or not a gray checkmark is displayed for the student's screen in the dashboard's summar…
9Ordered List.warning [sink]3warning Sets a string that is displayed as a tooltip in the teacher dashboard attached to a warning icon.
10Ordered List.readOnly [sink]1readOnly Sets a Boolean value that determines whether or not a component will be ignored when determining a screen's correctness. If all com…
11Ordered List.hidden [sink]1hidden When true, this component will not be shown to students.