TABLE
This element enables you to create a table layout, it is similiar in many ways to the HTML TABLE feature as far as layout is concerned. It is strongly linked to the TABLE_ROW element: a TABLE can only contain TABLE_ROW cells. A table is composed of TABLE_ROW elements, which contain cell elements. The number of columns is the number of first level cells contained in the rows.
The main difference from the CELL element is that the contents of TABLE will look/align like a table (have the same column widths), so you can align and position table-like contents more easily. See more examples below.
Attributes brief detailed show all inherited
Note that the layout_type attribute is not relevant here.
Examples
Here's an illustration of using ROW vs TABLE_ROW.
- <ROW>
- <LM_KNOB_BLACK_D param_id="demo_param" />
- <LMR_SLIDER_BLACK_VYNIL_H width="120" param_id="demo_param" />
- <LM_KNOB_BLACK_C param_id="demo_param" />
- </ROW>
- <ROW>
- <LM_SWITCH_OLDSCHOOL param_id="demo_param" />
- <LMR_HSWITCH_3D_WROUND param_id="demo_param" />
- <LM_LED_A_B param_id="demo_param" />
- </ROW>
If you use TABLE/TABLE_ROW instead:
- <TABLE>
- <LM_KNOB_BLACK_D param_id="demo_param" />
- <LMR_SLIDER_BLACK_VYNIL_H width="120" param_id="demo_param" />
- <LM_KNOB_BLACK_C param_id="demo_param" />
- </TABLE_ROW>
- <LM_SWITCH_OLDSCHOOL param_id="demo_param" />
- <LMR_HSWITCH_3D_WROUND param_id="demo_param" />
- <LM_LED_A_B param_id="demo_param" />
- </TABLE_ROW>
- </TABLE>
Using TABLE we can also make a nicely formatted text-content.
- <TABLE h_spacing="15" margin="10">
- <LM_CHECKBOX param_id="check_param1" />
- <TEXT value="Display toolbar" h_align="left" />
- <SVG_ICON_SETTINGS />
- </TABLE_ROW>
- <LM_CHECKBOX param_id="check_param2" />
- <TEXT value="Display meters" h_align="left" />
- <SVG_ICON_QUESTION />
- </TABLE_ROW>
- <LM_CHECKBOX param_id="check_param3" />
- <TEXT value="Display status bar" h_align="left" />
- <SVG_ICON_SETTINGS />
- </TABLE_ROW>
- </TABLE>