Panel

Inheritance Hierarchy

          IWebComponent

          IWebControl

          IWebPanel

          WebPanel

Description

The Panel component is a panel that is used to group components.

Comments

The component is a container for other visual components. All components on a panel inherit values of its enabled and visible properties. If a panel contains RadioButton components, their selection does not depend on selection of radio buttons located on the form or other panels.

The component has different properties available in the design mode and in the web form execution mode.

  • flexDirection. Main axis, on which flex components will be located. The value is set relative to the parent component, which contains flex components. Available values:

    • column. Default value. Components are located vertically.

    • row. Components are located horizontally.

  • aligments. Align flex components relative to the Y axis. Available values:

    • flex-start. Components are arranged at the beginning of the Y axis.

    • center. Components are centered on the Y axis.

    • flex-end. Components are arranged at the end of the Y axis.

  • justifyContent. Align flex components relative to the main axis. Available values:

    • flex-start. Default value. Components are shifted to the beginning of the main axis.

    • center. Components are centered on the main axis.

    • flex-end. Components are shifted to the end of the main axis.

    • space-around. Components are uniformly distributed along the main axis with equal free space around them. Visually, the free space between the outmost components and axis borders is less because the free space between components consists of two free spaces belonging to each of the components.

    • space-between. Components are uniformly distributed along the main axis. The first element is at the beginning of the axis, and the last element is in the end of the axis.

    • space-evenly. Components are distributed so that the distance between any two components and distance to the axis borders is equal.

The component does not have events.

Example

See also:

Creating a Web Form and Components Layout