跳至主要內容

类: TextArea

大约 5 分钟

类: TextArea

类属性

属性 text

类型:

访问: 只写

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

属性 placeholderText

类型:

访问: 只写

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

属性 cursorPos

类型: number

访问: 可读, 可写

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

属性 cursorClickPos

类型: number

访问: 可读, 可写

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

属性 passwordMode

类型: number

访问: 可读, 可写

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

属性 passwordBullet

类型:

访问: 只写

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

属性 oneLine

类型: number

访问: 可读, 可写

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

属性 acceptedChars

类型:

访问: 只写

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

属性 maxLength

类型: number

访问: 可读, 可写

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

属性 insertReplace

类型:

访问: 只写

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

属性 textSelection

类型: number

访问: 可读, 可写

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

属性 passwordShowTime

类型: number

访问: 可读, 可写

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

属性 align

类型: number

访问: 只写

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

属性 label

类型: obj

访问: 只读

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

属性 currentChar

类型: number

访问: 只读

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

类方法

方法 addChar

原型: addChar ()

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

返回值:

undefined

方法 addText

原型: addText ()

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

返回值:

undefined

方法 deleteChar

原型: deleteChar ()

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

返回值:

undefined

方法 deleteCharForward

原型: deleteCharForward ()

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

返回值:

undefined

方法 textIsSelected

原型: textIsSelected ()

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

返回值:

undefined

方法 clearSelection

原型: clearSelection ()

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

返回值:

undefined

方法 cursorRight

原型: cursorRight ()

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

返回值:

undefined

方法 cursorLeft

原型: cursorLeft ()

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

返回值:

undefined

方法 cursorDown

原型: cursorDown ()

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

返回值:

undefined

方法 cursorUp

原型: cursorUp ()

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

返回值:

undefined

上次编辑于:
贡献者: alee