Locator.setVisibility() 方法
¥Locator.setVisibility() method
通过克隆当前定位器并将可见性属性更改为指定值来创建新的定位器实例。
¥Creates a new locator instance by cloning the current locator with the visibility property changed to the specified value.
签名
¥Signature
class Locator {
setVisibility<NodeType extends Node>(
this: Locator<NodeType>,
visibility: VisibilityOption,
): Locator<NodeType>;
}
参数
¥Parameters
范围 | 类型 | 描述 |
---|---|---|
this | 定位器<节点类型> | |
visibility |
Returns:
Locator<NodeType>