Label

Click to copy

显示文本的元素


外观和感觉的设置。

  • Label text (强制性) - 显示的文本。
  • Icon(非强制性) - 标签图标。
  • Size(强制性) - 文本大小。
  • Name(mantory) - 这个名字将帮助你在BP中找到这个组件。
  • Visible(mandatory) - 如果打开,使该组件可见。默认情况下是启用的。

工作流触发器。

  • onCreate- 当该元素在页面上被创建时启动。
  • onShow- 当组件改变其状态为可见(在页面上显示)时启动。
  • onHide- 当组件的状态变为隐藏(停止显示)时发生火灾。
  • onDestroy- 当该组件被销毁时发生火灾。
  • onClick- 当该组件被点击时触发。

组件动作。

Label get properties

获取标签的属性。

输入 参数。

  • Component Id [string]- label组件的标识符。

输出参数。

  • Label[string]- label文本。
  • Font size [string]- 文本大小。
  • Font color [string]- 文本颜色。
  • Visible[boolean]- 组件的可见性状态。

Label set properties

设置所有标签的属性

输入 参数。

  • Component Id[string]- 标签组件的标识符。
  • Label[string]- 标签文本。
  • Font size [string]- 文本大小。
  • Font color [string]- 文本颜色。
  • Visible[boolean]- 组件的可见性状态。

Label update properties

更新标签的属性

输入 参数。

  • Component Id [string]- 标签组件的标识符。
  • Label[string]- 标签文本。
  • Font size [string]- 文本大小。
  • Font color [string]- 文本颜色。
  • Visible [boolean]- 组件的可见度状态。


使用实例。

标签元素可以显示动态内容。

Label | AppMaster Docs