透過集合功能整理內容
你可以依據偏好儲存及分類內容。
blockly > ISelectable
ISelectable 介面
可選取物件的介面。
實作項目通常會使用 onNodeFocus() 和 onNodeBlur() 實作項目,分別呼叫 setSelected() 和 null,以確保正確更新選取項目,並觸發選取項目變更事件。
Signature:
export interface ISelectable extends IFocusableNode
擴充: IFocusableNode
屬性
方法
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],["The `ISelectable` interface defines objects that can be selected within a workspace. It mandates the presence of an `id` (string) and a `workspace` property of `Workspace` type. Key actions include `select()`, which visually highlights the object, and `unselect()`, which removes the visual highlight. These methods control the visual state of the selectable object within its designated workspace.\n"],null,[]]