Online documentation, manuals and tutorials
< All Topics
Print

Panel

Description

It is used to group several Widgets, and it is used when we want to additionally organize a page that contains a large number of Widgets or if we want to perform some operation on several Widgets at once, e.g. hide using the Hidden flag of the Panel. When the Widget is inside the Panel, then its left and top coordinates are relative to the left and top of the Panel, which means that when the Panel is moved, all the Widgets inside it are also moved. Widgets are added to the Panel via the Widgets Structure panel using drag and drop.

Properties

General

Name

String

Widget name. We reference the Widget within the project by its name, for example in the LVGL action. For each Widget, we must choose a unique name within the entire project. This field is optional and does not need to be set if we do not need to reference the Widget.

Group

ObjectReference

The name of the input group this widget belongs to.

Group index

Number

Defines the order of widgets within group. This is similar to tabindex in HTML:

  • if “Group index” is 0 then group order is the same as in Widgets Structure
  • if “Group index” is > 0 then widget is added to the group before any widget with “Group index” 0 and before any widget with the greater “Group index” value. That is, “Group index”=4 is added before “Group index”=5 and “Group index”=0, but after “Group index”=3. If multiple widgets share the same “Group index” value, their order relative to each other follows their position in the Widgets Structure.
Page content