类: Keyboard
约 298 字小于 1 分钟
2024-05-03
构建固件和导入到JS
Keyboard 类由 lv 模块提供:
import { Keyboard } from 'lv'简介
键盘控件
屏幕虚拟键盘,通常配合 TextArea 输入文本
该类是对 LVGL Widget
lv_keyboard_t的封装,具体用法请参考 LVGL 文档
继承自 Obj,拥有 Obj 的全部属性、方法和事件。
示例:
import * as lv from "lv"
const obj = new lv.Keyboard(lv.screen())类属性
属性 textarea
类型: obj
访问: 可读, 可写
该属性是对 LVGL C API
lv_keyboard_get_textarea,lv_keyboard_set_textarea的封装, 具体用法请参考 LVGL文档
属性 mode
类型: number
访问: 可读, 可写
该属性是对 LVGL C API
lv_keyboard_get_mode,lv_keyboard_set_mode的封装, 具体用法请参考 LVGL文档
属性 popovers
类型: number
访问: 只写
该属性是对 LVGL C API
lv_keyboard_set_popovers的封装, 具体用法请参考 LVGL文档
