ProgressBar

<< 点击显示目录 >>

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

ProgressBar

Widget "ProgressBar" displays a progress indicator bar. The bar is displayed as a range from 0-100%.

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

zIndex, left, top, height, width

Appearance

progressbar_editor

progressbar_runtime

Editor

Web browser

Properties

Name

Type

Description

Bindable

Necessary

Default value

barAnimation

Boolean

Defines whether the progress bar's animation is displayed.

This option has no effect if "stripedProgressBar" is set to value false.

 

 

false

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

labelPosition

Position

Defines the position of the text field for displaying the percentage. Possible values:

right, left, middle, center, top, bottom

 

 

right

labelSize

Size

Defines the minimum width or height of the text field depending on the alignment of the widget.

 

 

30

maxValue

Number

Defines the maximum permissible value for value binding.

Value value is scaled in the configurable range of minValue and maxValue.

check

 

100

minValue

Number

Defines the minimum permissible value for value binding.

Value value is scaled in the configurable range of minValue and maxValue.

check

 

0

orientation

Orientation

Defines the direction in which the bar is filled.

 

 

LeftToRight

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.

 

 

 

showLabel

Boolean

Defines whether the text field for displaying the percentage is shown.

 

 

true

stripedProgressBar

Boolean

Defines whether striped styling is applied to the bar.

progressbar_striped

 

 

false

style

StyleReference

Reference to a customizable widget style.

check

 

default

value

Number

Defines the value of the widget (permissible value between minValue and maxValue)

Set value value is displayed as a percentage within the range of minValue and maxValue.

check

 

0

node

Node

Value with minValue and maxValue for node binding.

Set value node is displayed as a percentage within the range of minValue and maxValue.

Note: The unit symbol, such as °C, is not displayed.

check

 

 

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.

 

 

25

width

Size

Defines the total width of the widget in pixels.

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

 

 

400

transitionTime

UInteger

Defines the time (ms) the bar needs to move to a new position when a value changes.

 

 

500

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

Styleable properties

Name

Type

Description

Default value

opacity

Opacity

Defines the transparency of the widget. The lower the value, the more transparent the widget.

1

padding

Padding

Defines the spacing between the outer boundary of the widget and its content. For more information, see here.

0px

margin

Margin

Defines the offset of the external boundary of the widget to the widget's actual set position. For more information, see here.

0px

shadow

Shadow

Defines the shadow of the widget.

none

barBorderStyle

BorderStyle

Defines the style of the bar's border. Borders can be unbroken, dashed or dotted.

none

barBorderWidth

PixelValCollection

Defines the width of the bar's border.

1px

barBorderColor

Color

Defines the color of the bar's border.

#000000

barCornerRadius

PixelValCollection

Defines the corner style of the bar.

20px

barBackColor

Color

Defines the background color of the bar.

#E0E0E0

barColor

Color

Defines the foreground color of the bar.

#FF8800

barBackGroundGradient

Gradient

Defines the background color of the progress bar as a color gradient.

 

barGradient

Gradient

Defines the foreground color of the bar as a color gradient.

If property stripedProgressBar is defined as true, "barGradient" is not applied.

 

borderStyle

BorderStyle

Defines the style of the border around the widget. Borders can be unbroken, dashed or dotted.

solid

borderWidth

PixelValCollection

Defines the width of the border around the widget.

1px

borderColor

Color

Defines the color of the border around the widget.

#000000

cornerRadius

PixelValCollection

Defines the corner style of the widget.

4px

backColor

Color

Defines the background color of the widget.

Transparent

fontName

FontName

Defines the font used for the text shown.

Arial

fontSize

PixelVal

Defines the size of the font used to display the text.

12px

fontColor

Color

Defines the color used to display the text.

#000000

bold

Boolean

Defines whether the text is shown in bold.

false

Topics in this section:

Actions and events