連線和輸入
連線和輸入內容會定義區塊如何與其他區塊連線。
連線
連線會定義不同區塊可以連線的位置和時機。連線類型分為四種類型:
輸出連線和輸入連線可以相互連線,而後續的連線和先前的連線也可以互相連線。
您可以設定連線檢查,進一步限制可連線的連線。
您也可以使用自訂轉譯器自訂連線形狀。
輸入內容包含一系列的「欄位」,而且不一定包含連線。內建輸入有三種,可處理 Blockly 的多數用途。您也可以定義自訂輸入內容,該輸入支援自訂顯示功能。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-02 (世界標準時間)。
[null,null,["上次更新時間:2023-12-02 (世界標準時間)。"],[[["Connections dictate how blocks interact, with four types: output, input, previous, and next, allowing for specific block linkages."],["Inputs are comprised of fields and may include a connection, with three built-in types for common uses and the option to create custom inputs for specialized needs."],["Connection checks and custom renderers offer further customization options for controlling block connections and appearances."]]],["Blocks connect via defined connections and inputs. Connections, including output, input, previous, and next, dictate how blocks link; output connects to input, and next to previous. Connection compatibility can be limited using connection checks. Inputs contain fields and may have connections. There are three built-in input types, with options for custom inputs and rendering. Connection shapes can also be customized.\n"]]