연구 설문조사: Blockly 사용 경험을 알려주세요
설문조사 시작
필드 맞춤설정
Blockly는 여러 유용한 필드를 제공하지만 애플리케이션에는 특수한 경우가 있을 수 있습니다. 필드를 맞춤설정할 때 취해야 할 몇 가지 단계는 다음과 같습니다.
필요한 것과 유사한 모든 필드에 대한 문서를 읽어보세요. 유용한 맞춤설정 도구를 제공할 수 있습니다. 예를 들어 드롭다운에는 많은 숨겨진 기능이 있습니다.
검사기를 사용해 문제를 해결해 보세요.
검사기를 사용하면 특정 값만 허용하거나, 입력을 수정하거나, 필드 값이 변경될 때 기능을 트리거할 수 있습니다.
필드를 확장해 보세요.
필요한 값 유형을 나타내는 필드가 있지만 필드의 편집기, 모양, 텍스트를 수정하려면 기능의 대부분을 상속하는 서브클래스를 생성하면서 변경하려는 특정 부분을 재정의하면 됩니다.
새 필드 유형을 만듭니다.
가장 강력한 옵션이지만 가장 많은 시간이 소요됩니다. 일반적으로 새 값 유형을 저장해야 하는 경우에만 사용해야 합니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2022-12-06(UTC)
[null,null,["최종 업데이트: 2022-12-06(UTC)"],[[["Blockly offers customization options beyond its built-in fields, allowing developers to tailor fields to their specific needs."],["Before creating a new field type, explore existing fields, validators, and extension capabilities for potential solutions."],["Leverage validators to control accepted values, modify input, or trigger actions based on field value changes."],["Extend existing fields to modify their editor, appearance, or displayed text while inheriting core functionality."],["Creating a new field type is the most powerful but time-intensive option, reserved for storing new value types."]]],["Customizing Blockly fields involves several steps: First, review documentation of similar fields for potential customization options. Second, use validators to control accepted values, modify input, or trigger actions upon value changes. Third, extend existing fields by creating subclasses to modify their editor, appearance, or displayed text. Finally, create a new field type for storing novel value types, though this is the most complex option.\n"]]