new SelectionIndicator(container, scene)
用于在选定对象上显示指示器的部件。
| Name | Type | Description |
|---|---|---|
container |
Element | String |
包含 widget 的 DOM 元素或 ID。 |
scene |
Scene |
要使用的场景实例。 |
Throws:
-
文档中不存在 id 为 "container "的元素。
- Type
- DeveloperError
Members
-
containerElement
-
获取父容器。
-
viewModelSelectionIndicatorViewModel
-
获取视图模型。
Methods
-
destroy()
-
销毁部件。如果要从布局中永久删除 widget,应调用该命令。
-
isDestroyed(){Boolean}
-
Returns:
Type Description Boolean 如果对象已被销毁,则为 true,否则为 false。