跳至主要內容

类: SpinBox

大约 2 分钟

类: SpinBox

类属性

属性 value

类型: number

访问: 可读, 可写

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

属性 rollover

类型: number

访问: 可读, 可写

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

属性 step

类型: number

访问: 可读, 可写

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

属性 cursorPos

类型: number

访问: 只写

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

属性 digitStepDirection

类型: LV-CONST

访问: 只写

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

类方法

方法 setDigitFormat

原型: setDigitFormat ()

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

返回值:

undefined

方法 setRange

原型: setRange ()

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

返回值:

undefined

方法 stepNext

原型: stepNext ()

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

返回值:

undefined

方法 stepPrev

原型: stepPrev ()

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

返回值:

undefined

方法 increment

原型: increment ()

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

返回值:

undefined

方法 decrement

原型: decrement ()

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

返回值:

undefined

上次编辑于:
贡献者: alee