跳转至主要内容
CloudStudio

Device UI rules

The device UI rules object represents the user interface rules applied to a device, typically used in 设备模型配置 scripts.

The updateDeviceUIRules function receives an object of this type as a parameter, which allows establishing the user interface rules for the device given as a parameter in the script.

属性

canCreate端点 (boolean) The canCreate端点 property indicates whether it is possible to create endpoints on the device given as a parameter. The value true indicates that creating endpoints is allowed, while the value false prevents the creation of new endpoints.

示例

此示例 prevents creating new endpoints on a device.

function updateDeviceUIRules(device, rules)
{
	rules.canCreateEndpoints = false;
}

最后更新于

本页内容