RadioButtonGroup

<< 点击显示目录 >>

主页  mappView帮助助手 > mapp View帮助信息 > Widgets  > Containers  >

RadioButtonGroup

Widget "RadioButtonGroup" is a container where several "RadioButton" widgets can be grouped. This makes it possible to select one of many options by selecting the corresponding "RadioButton" widget.

For more information about container or child widgets, see Definition of container/child widgets.

The following properties cannot be used in compound widget "Mapping":

zIndex, left, top, height, width

Appearance

Widget "RadioButtonGroup" is not visible at runtime; only the associated "RadioButton" widgets are displayed. The images show widget "RadioButtonGroup" with two "RadioButton" widgets.

radiobuttongroup_editor

radiobuttongroup_runtime

Editor

Web browser

Properties

Name

Type

Description

Bindable

Necessary

Default value

alignment

Direction

Orientation of the widget elements. Possible values:

horizontal: Elements are arranged from left to right (no line break).

vertical: Elements are arranged from left to right (with line break).

"alignment" is only applied if childPositioning has value "relative".

 

 

vertical

autoScroll

Boolean

Defines whether a scrollbar is shown when needed. If "autoScroll" is true, childPositioning is relative and the available space is not big enough, a scrollbar is shown in order to be able to navigate to the hidden elements.

The direction of the scrollbar depends on the value of property alignment.

If "autoScroll" is false, a scrollbar is not shown.

 

 

false

childPositioning

ChildPositioning

Defines the type of positioning for included elements. Possible values:

absolute: Child widgets can be positioned as needed. If widgets are positioned within a group box such that only half of them are visible, for example, then these widgets will also not be fully displayed at runtime. The scrollbars will not be displayed.

relative: Child widgets are positioned automatically in order. The position of the child widget being added must be 0,0 for this. If the group box is too small, scrollbars are displayed automatically to access the hidden child widgets. If relative positioning is used, the placed child widgets must have their width and height properties defined as a pixel value and not as a percentage.

Function AutoSize of a widget within a container widget has no effect on function AutoScroll of the container widget.

 

 

absolute

enable

Boolean

Defines the usability of the widget. A disabled widget (enable=false) does not react to user interaction and does not trigger events. The "enable" behavior is inherited from the container widgets to the child widgets.

check

 

true

permissionOperate

RoleCollection

Defines the roles that are permitted to use the widget. For roles without sufficient rights, the widget does not react to user interaction and does not trigger events.

 

 

 

permissionView

RoleCollection

Defines the roles that are permitted to see the widget. For roles without sufficient rights, the widget is hidden.

 

 

 

selectedIndex

Integer

Defines the index of the child element to be selected (widget). The first child element has index 0.

check

 

0

style

StyleReference

Reference to a customizable widget style.

check

 

default

visible

Boolean

Defines the visibility of the widget. The widget can be hidden with visible=false. (visible = true, hidden = false). The "visible" behavior is inherited from the container widget to the child widgets.

check

 

true

zIndex

UInteger

zIndex determines the z-order of the widget. With overlapping widgets, the zIndex determines which widget is on the top and which one is on the bottom. The widget with the larger zIndex is on top, and the one with the smaller zIndex is on the bottom. The zIndex must be unique within a piece of content or a container widget. The zIndex is automatically assigned by the visual editor and can therefore be changed via the toolbar.

 

check

 

left

Integer

Absolute position measured from the left border of the surrounded element (e.g. container widget or content).

 

 

 

top

Integer

Absolute position measured from the top border of the surrounded element (e.g. container widget or content).

 

 

 

height

Size

Defines the total height of the widget in pixels.

A value in % refers to the height of the surrounding element.

 

 

90

width

Size

Defines the total width of the widget in pixels.

A value in % refers to the width of the surrounding element.

 

 

150

tooltip

String

Defines the text that should appear as information when the tooltip indicator is pressed.

You can use a static text or a text from the text system. For more information, see here.

Mode "Tooltip" must be enabled for this. There are two different options for this:

Using action "ShowTooltip"

Using action "Client system" ShowTooltips.

 

 

 

tabIndex

Integer

Property tabIndex is used to manage the tab order during keyboard operation.

For additional information, see Keyboard operation.

ENTER triggers event Click if tabIndex ≥0.

 

 

-1

Topics in this section:

Actions and events