WebViewer

<< 点击显示目录 >>

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

WebViewer

Widget "WebViewer" is used to display HTML pages.

The HTML page is specified using its URL:

http://[host][:port][/path][?query]

For details about these individual components, see the properties below. The example on this page is "http://127.0.0.1/sdm/index.html".

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

zIndex, left, top, height, width

Appearance

webviewer_editor

webviewer_runtime

Editor

Web browser

Properties

Name

Type

Description

Bindable

Read only

Necessary

Default value

busy

Boolean

The request has not yet been completed.

check

check

 

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

host

String

Hostname or IP address of the server. If this field is left empty, the address at which the application is running is used.

host in this example would be "www.br-automation.com".

check

 

 

 

path

String

URL path that comes after the port (if specified).

path in this example would be "/de-at/search/".

check

 

 

sdm

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.

 

 

 

 

port

Number

Port number of the server. The default value is 80.

check

 

 

80

query

String

The queries in a URL are the parameters that come after "?" (also known as GET parameters). Different queries can be combined with one another using "&".

query in this example would be "?stype=0&key=SDM".

check

 

 

 

src

String

The complete URL of the web page can be entered here.

Allows the use of a text key.

check

 

 

 

style

StyleReference

Reference to a customizable widget style.

check

 

 

default

useURL

Boolean

This option toggles between property "url" (host, port, path and query) and property "src".

Property "url" is used by default. If unchanged, this will take the user to the System Diagnostics Manager for the machine.

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

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.

 

 

 

300

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.

It is not possible to operate widget WebViewer with the keyboard.

 

 

 

-1

Styleable properties

Name

Type

Description

Default value

backColor

Color

Defines the background color of the widget.

Transparent

borderColor

ColorCollection

Defines the color of the border around the widget.

#9A9A9A

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.

2px 0px 0px 2px

cornerRadius

PixelValCollection

Defines the corner style of the widget.

0px

Topics in this section:

Actions and events