雖然 Blockly 提供許多實用的欄位,但應用程式可能有特殊案例。自訂欄位時,請採取下列步驟:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2022-12-06 (世界標準時間)。
[null,null,["上次更新時間:2022-12-06 (世界標準時間)。"],[[["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"]]