Skip to main content

create_button

Function create_button 

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

组件系统相关功能 创建按钮组件

§参数

  • id: 组件ID
  • text: 按钮文本
  • style: 组件样式

§返回值

按钮组件实例