InfoBanner

<< 点击显示目录 >>

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

InfoBanner

Widget "InfoBanner" is a container with a definable size that provides a visual transition when opening and closing. This container can be placed anywhere on a piece of content.

Any widget (except another "InfoBanner" widget) can be placed on widget "InfoBanner".

The button that is visible in the editor for opening and closing widget "InfoBanner" is not displayed at runtime. The InfoBanner must be opened or closed at runtime with actions (Open, Close).

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

infobanner_editor

infobanner_runtime

Editor

Web browser

Properties

Name

Type

Description

Bindable

Necessary

Default value

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

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

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.

 

 

 

style

StyleReference

Reference to a customizable widget style.

check

 

default

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.

 

 

200

width

Size

Defines the total width of the widget in pixels.

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

 

 

100

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.

 

 

 

docking

ImageAlign

Defines the position of the widget.

Possible values:

left: Positions the widget on the left edge of the page.

right: Positions the widget on the right edge of the page.

bottom: Positions the widget on the bottom edge of the page.

top: Positions the widget on the top edge of the page.

 

 

bottom

autoClose

Boolean

Defines whether window "InfoBanner" closes automatically when clicking outside the widget.

(automatically close = true, do not automatically close = false)

Interacting with a widget within "InfoBanner" during "autoCloseTime" disables automatic closing. Clicking outside of widget "InfoBanner" closes it again.

 

 

false

autoCloseTime

UInteger

Defines the time (ms) after widget "InfoBanner" is automatically closed.

If autoCloseTime = 0, the window is not closed automatically.

 

 

0

transitionOpenTime

UInteger

Defines the time (ms) that widget "InfoBanner" uses to open a visual transition.

 

 

0

transitionCloseTime

UInteger

Defines the time (ms) that widget "InfoBanner" uses to close a visual transition.

 

 

0

showOnTop

Boolean

Defines the behavior of widget "InfoBanner".

true: Widget "InfoBanner" is placed in front of all other widgets regardless of its zIndex. All widgets underneath and on top of widget "InfoBanner" will be covered up. A projected shadow (styleable property"shadow") is not displayed at runtime.

false: Widget "InfoBanner" is placed depending on its zIndex. Widgets on top of widget "InfoBanner" can cover it up.

 

 

false

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

defaultValue

backColor

Color

Defines the background color of the widget.

Transparent

backGroundGradient

Gradient

Defines the background color of the widget as a color gradient.

 

borderStyle

BorderStyle

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

solid

borderColor

ColorCollection

Defines the color of the border around the widget.

#000000

borderWidth

PixelValCollection

Defines the width of the border around the widget.

1px

cornerRadius

PixelValCollection

Defines the corner style of the widget.

0px

opacity

Opacity

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

1

shadow

Shadow

Defines the shadow of the widget.

If property showOnTop=true, the shadow is displayed on the piece of content even if widget InfoBanner is not open.

none

Topics in this section:

Actions and events