홈 › Components › Action Button (행동 버튼) › 화면 6
화면 6. Action Button.label [sink]
원본: Computation Layer 문서(Action Button (행동 버튼)) · Try It (원본 화면)
| 화면 번호 | 6 / 12 |
|---|---|
| 문서 항목 설명 (원문) | label Sets the text to show on the button. Keep it short. |
1. 화면 캡처 (빨간 번호 = 아래 표의 번호)
- Press the button – but not too many times!
- Press Me!
2. CL이 입력된 곳
| 번호 | 이름 | 종류 | CL 코드 원문, 번역, 설명 |
|---|---|---|---|
| 1 | myButton | 행동 버튼 | # This "label" sink has a conditional statement attached that will change the label # from "Press Me!" to "Too Many!" after the button has been pressed 10 times. ▷ 이 "label" sink에는 조건문이 붙어 있어서, 버튼이 10번 눌린 뒤에는 라벨이 "Press Me!"에서 "Too Many!"로 바뀐다. label: when myButton.pressCount < 10 "Press Me!" otherwise "Too Many!" ▶ 행동 버튼의 라벨(label)은 myButton이 눌린 횟수가 10보다 작으면( |