← 수업 제작 도구
홈 › Components › Free Response (자유 답변) › 화면 8

화면 8. Input.submitDisabled [sink]

원본: Computation Layer 문서(Free Response (자유 답변)) · Try It (원본 화면)

화면 번호8 / 9
문서 항목 설명 (원문)submitDisabled Disable the submit button. Note: Even if set to false, the input button will be disabled if the input is empty.

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

화면 8 캡처

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

2. CL이 입력된 곳

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

번호이름종류CL 코드 원문, 번역, 설명
1레이블 없는 자유 답변자유 답변
# Disable submitting of the text response until the graph has 
# been interacted with.
▷ 그래프를 조작하기 전까지는 글 답변을 제출하지 못하게 한다.
submitDisabled: graph.number(`m_{ove}`) = 0
▶ 제출 버튼의 비활성화 조건(submitDisabled)은 그래프 graph의 변수 m_{ove}의 숫자 값이 0과 같은지 비교한 결과(graph.number(`m_{ove}`) = 0)로 한다.
submitDisabled가 거짓이어도 입력이 비어 있으면 버튼은 비활성화된다. 변수 이름을 백틱으로 감싸 적었으며, 문서에서 백틱으로 감싼 글자는 latex 값이다.