> Template screen item object模板聚合图形项对象
The following objects are directly related to the templatescreenitem
API.以下对象是与templatescreenitem
API有直接关系 .
Template screen item模板聚合图形项
The template screen item object defines an element displayed on a template screen. It has the following properties.模板聚合图形项该对象为模板上聚合图形显示的元素.它具有以下属性.
Property参数 | Type类型 | Description说明 |
---|---|---|
screenitemid | string | (readonly只读) ID of the template screen item模板聚合图形项的ID. |
resourceid(required必须) | string | ID of the object from the parent template displayed on the template screen item来自父模板的对象的ID显示在模板聚合图形项上. Depending on the type of screen item, the resourceid property can reference different objects根据聚合图形项的类型,resourceid 属性可引用不同的对象. Unused by clock and URL template screen items聚合图形项不用于clock和URL. Note: the resourceid property always references an object used in the parent template object, even if the screen item itself is inherited on a host or template.注意: 即使聚合图形项自身继承在某一主机或模板上,其resourceid属性始终引用父模板对象中使用的对象。 |
resourcetype(required必须) | integer | Type of template screen item模板聚合图形项. Possible values可能的值: 0 - graph图形; 1 - simple graph简单图形; 3 - plain text纯文本; 7 - clock时钟; 11 - URL; 19 - simple graph prototype简单图形原型; 20 - graph prototype图形原型. |
screenid(required必须) | string | ID of the template screen that the item belongs to模板聚合图形项所属ID. |
colspan | integer | Number of columns the template screen item will span across模板聚合图形项所跨的列数. Default: 1. |
elements | integer | Number of lines to display on the template screen item在模板聚合图形项上显示的行数. Default: 25. |
halign | integer | Specifies how the template screen item must be aligned horizontally in the cell指定模板监控项如何在单元格中水平对齐. Possible values可能的值: 0 - (default) center中心; 1 - left左边; 2 - right右边. |
height | integer | Height of the template screen item in pixels模板聚合图形项的高度(以像素为单位). Default: 200. |
maxcolumns | integer | Specifies the maximum amount of columns a graph prototype or simple graph prototype screen element can have指定的图形原型或简单图形原型聚合图形元素可具有的最大列数. Default: 3. |
rowspan | integer | Number or rows the template screen item will span across模板聚合图形项所跨的行数. Default: 1. |
style | integer | Template screen item display option模板聚合图形项显示的选项. Possible values for clock screen items聚合图形项clock的可能值: 0 - (default) local time当地时间; 1 - server time server时间 ; 2 - host time主机时间. Possible values for plain text screen items聚合图形项纯文本的可能值: 0 - (default) display values as plain text显示值为纯文本; 1 - display values as HTML显示值为HTML. |
url | string | URL of the webpage to be displayed in the template screen item. Used by URL template screen items.在模板聚合图形项中显示的网页的URL,由URL模板聚合图形项使用 |
valign | integer | Specifies how the template screen item must be aligned vertically in the cell指定模板聚合图形项如何在单元格中垂直对齐. Possible values可能的值: 0 - (default)_ middle中间; 1 - top顶部; 2 - bottom底部. |
width | integer | Width of the template screen item in pixels模板聚合图形项的宽度(以像素为单位). Default: 320. |
x | integer | X-coordinates of the template screen item on the screen, from left to right模板上聚合图形项在screen的X轴,从左到右. Default: 0. |
y | integer | Y-coordinates of the template screen item on the screen, from top to bottom模板上聚合图形项在screen的Y轴,从上到下. Default: 0. |