Skip to content

lvgl.clear

lvgl.clear([parent])

Delete LVGL objects.

Parameters

Name Req Type Description
parent no object optional LVGL object whose children should be deleted; if omitted, the entire script UI is deleted

Returns

Name Type Description
none unknown

Availability

  • Since: 2.11.0
  • Radio support: color-lcd

Notes

  • If parent is not set, the entire script UI is deleted -- use this when the UI changes dramatically (e.g. widget size changes). @notice If parent is set, only its child LVGL objects are deleted -- use this to remove and replace a specific set of objects.

Source

radio/src/lua/api_colorlcd_lvgl.cpp