Skip to main content

create_label

Function create_label 

Source
pub fn create_label(id: &str, text: &str, style: Style) -> Component
Expand description

组件系统相关功能 创建标签组件

§参数

  • id: 组件ID
  • text: 标签文本
  • style: 组件样式

§返回值

标签组件实例