Skip to content
On this page

Label

A label is a commonly used interface element used to display text content. It can be used to display titles, captions, descriptions, or other text information.

For more detailed information, you can refer to this link: https://docs.lvgl.io/8.3/widgets/core/label.html

Properties

A label has several properties to define its text display mode.

  • Default Mode: In the default mode, the label text will automatically wrap to fit the width of the container.
  • Ellipsis: In the ellipsis mode, the label text will display ellipsis when it exceeds the width of the container.
  • Scroll Back and Forth: In the scroll back and forth mode, the label text will horizontally scroll within the container and return to the starting position when reaching the end.
  • Circular Scroll: In the circular scroll mode, the label text will horizontally scroll within the container and immediately return to the starting position to continue scrolling when reaching the end.
  • Clipping: In the clipping mode, the label text will be clipped when it exceeds the width of the container, displaying only the visible portion within the container.
Mode
Default ModeLV_LABEL_LONG_WRAP
EllipsisLV_LABEL_LONG_DOT
Scroll Back and ForthLV_LABEL_LONG_SCROLL
Circular ScrollLV_LABEL_LONG_SCROLL_CIRCULAR
ClippingLV_LABEL_LONG_CLIP

Example

label_1.gif