홈 › Components › Action Button (행동 버튼)
Action Button (행동 버튼)
원본: Computation Layer 문서(Action Button (행동 버튼)). 문서의 Try It 예제가 가리키는 화면 12개를 기록했고, 화면마다 CL 코드를 한국어로 풀어 썼다.
| 화면 | 이름 | CL 수 | 문서 항목 설명 (원문 일부) |
|---|---|---|---|
| 1 | Action Button.timeSincePress [source] | 1 | timeSincePressmaxTime: number Gets the seconds (plus milliseconds) since the "Submit" button was pressed. It resets to zero if the "reset" l… |
| 2 | Action Button.history [source] | 2 | historykey: string Gets the history of a variable that was defined using the "capture" sink. |
| 3 | Action Button.lastValue [source] | 2 | lastValuekey: string Gets the last value captured for a variable that was defined using the "capture" sink. |
| 4 | Action Button.pressCount [source] | 1 | pressCount Gets the number of times the action button has been pressed. |
| 5 | Action Button.capture [sink] | 2 | capturekey: string Sets a variable you want to capture every time the action button is pressed. (Retrieve the history of that variable later… |
| 6 | Action Button.label [sink] | 1 | label Sets the text to show on the button. Keep it short. |
| 7 | Action Button.resetLabel [sink] | 2 | resetLabel Sets the link text we'll show that lets the student reset the action button. |
| 8 | Action Button.disabled [sink] | 2 | disabled Sets a Boolean that determines when the action button is disabled or enabled. (When it's disabled, we gray out the button and make … |
| 9 | Action Button.style [sink] | 1 | style Sets the button style. Use "default" for our standard blue style. Other options are "red" for a warning or for a confirmatory second c… |
| 10 | Button.resetStyle [sink] | 2 | resetStyle Sets the button style when in "reset" state. Use "link" for our standard link or "white" for button styling on a dark background. |
| 11 | Action Button.resetOnChange [sink] | 3 | resetOnChange Specify a string value. If that value changes, the component resets. |
| 12 | Action Button.hidden [sink] | 2 | hidden When true, this component will not be shown to students. |