透過集合功能整理內容
你可以依據偏好儲存及分類內容。
封鎖 >欄位 >isClickableInFlyout
Field.isClickableInFlyout() 方法
檢查區塊正在飛出時,欄位是否可供點擊。預設為在開啟的簡易工具 (例如簡易工具箱) 中,欄位可以點選,但無法在類別工具箱等自動關閉浮動式介面中點選。子類別可以覆寫這個函式,藉此變更這項行為。請注意,isClickable
也必須傳回 true,這樣才有作用。
Signature:
isClickableInFlyout(autoClosingFlyout: boolean): boolean;
參數
參數 |
類型 |
說明 |
autoClosingFlyout |
布林值 |
如果包含的飛出是自動關閉的,傳回 true。 |
傳回:
布林值
當區塊正在飛出時,欄位是否可供點擊。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-25 (世界標準時間)。"],[],["The `isClickableInFlyout()` method determines if a field is clickable when its block is in a flyout. It accepts a boolean, `autoClosingFlyout`, indicating if the flyout auto-closes. The method returns a boolean, specifying if the field should be clickable in the flyout. By default, fields are clickable in always-open flyouts but not in auto-closing ones. Subclasses can override this behavior. Note that `isClickable` must be true for this method to apply.\n"]]