跳至主要內容

类: Label

大约 1 分钟

类: Label

类属性

属性 text

类型: number

访问: 可读, 可写

该属性是对 LVGL C API lv_label_get_text, lv_label_set_text 的封装, 具体用法请参考 LVGL文档open in new window

属性 textStatic

类型:

访问: 只写

该属性是对 LVGL C API lv_label_set_text_static 的封装, 具体用法请参考 LVGL文档open in new window

属性 longMode

类型: number

访问: 可读, 可写

该属性是对 LVGL C API lv_label_get_long_mode, lv_label_set_long_mode 的封装, 具体用法请参考 LVGL文档open in new window

属性 textSelectionStart

类型: number

访问: 可读, 可写

该属性是对 LVGL C API lv_label_get_text_selection_start, lv_label_set_text_selection_start 的封装, 具体用法请参考 LVGL文档open in new window

属性 textSelectionEnd

类型: number

访问: 可读, 可写

该属性是对 LVGL C API lv_label_get_text_selection_end, lv_label_set_text_selection_end 的封装, 具体用法请参考 LVGL文档open in new window

类方法

方法 insText

原型: insText ()

该方法是对 LVGL C API lv_label_ins_text 的封装,具体用法请参考 LVGL文档open in new window

返回值:

undefined

方法 cutText

原型: cutText ()

该方法是对 LVGL C API lv_label_cut_text 的封装,具体用法请参考 LVGL文档open in new window

返回值:

undefined

上次编辑于:
贡献者: alee