TableItemImageList

<< 点击显示目录 >>

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

TableItemImageList

Widget "TableItemImageList" enables a column or row with images in the table. It is added to widget "Table".

Widget "Table" must be added first in order to use widget "TableItemImageList".

When connecting property "selectedIndex", make sure that a numeric array is bound. Otherwise, nothing will be displayed in the column but the title of the "TableItemImageList".

logo_use_case

How the widget can be styled is explained in use case Column styling.

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

zIndex

Appearance

tableitemimagelist_editor_01

tableitemimagelist_browser

Editor

Web browser

Properties

Name

Type

Description

Binding

Read only

Necessary

Default value

columnWidth

UInteger

Defines the column width.

This property can overwrite property "columnWidth" of widget "Table" if the value is not equal to 0. This is only possible, however, if widget "TableItem" has been defined as a column.

check

 

 

0

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

imageList

GraphicCollection

List of images located at the specified path (imagePrefix).

Displays a placeholder image until imageList and imagePrefix have been set.

The array position (selectedIndex) defines the index of the image.

Example:

['image1.png','image2.png']

check

 

check

 

imagePrefix

DirectoryPath

Relative path to a folder containing images that should be placed on the widget.

Displays a placeholder image until imageList and imagePrefix have been set.

For more information, see here.

 

 

 

 

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.

 

 

 

 

rowHeight

UInteger

Defines the row height.

This property can overwrite property "rowHeight" of widget "Table" if the value is not equal to 0. This is only possible, however, if widget "TableItem" has been defined as a line.

check

 

 

0

selectedImageIndex

Integer

Specifies the image index of a cell. If nothing is selected or the table updated, the return value is -1.

check

check

 

0

selectedIndex

NumberArray1D

Defines the images that are displayed in the table. A numeric array must be specified. The size of the array determines the number of cells.

If selectedIndex[0] = 1, for example, then the image at index 1 of property imageList is displayed in the first cell. If imageList = ['image1.png','image2.png'], then image2.png will be displayed.

check

 

check

 

style

StyleReference

Reference to a customizable widget style.

check

 

 

default

text

String

Defines the text in the header.

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

 

Styleable properties - Only configurable using a theme

Name

Type

Description

Default value

backColorEven

Color

Background color for even-numbered table entries in the row direction.

Transparent

backColorOdd

Color

Background color for unevenly numbered table entries in the row direction.

Transparent

backgroundGradientEven

Gradient

Background gradient for even-numbered table entries in the row direction.

 

backgroundGradientOdd

Gradient

Background gradient for unevenly numbered table entries in the row direction.

 

cellAlign

BackgroundPosition

Orientation of the text in a cell.

center center

cellBorderStyle

BorderStyle

Style of the table border.

solid

cellBorderColor

Color

Border color of a cell.

#C8C8C8

cellBorderWidth

PixelValCollection

Border width of a cell.

0px 0px 1px 1px

fontSize

PixelVal

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

14px

headerBackColor

Color

Text color for selected elements.

#FCFCFC

headerGradient

Gradient

Background gradient of the header.

 

headerTextColor

Color

Text color of the header.

#333333

headerFontSize

PixelVal

Font size of the header.

14px

headerBold

Boolean

Defines whether text in the header is shown in bold.

false

headerItalic

Boolean

Defines whether text in the header line is displayed in italics.

false

textColorOdd

Color

Defines the color used to display text in odd-numbered table entries in the row direction.

#333333

textColorEven

Color

Defines the color used to display text in even-numbered table entries in the row direction.

#333333

bold

Boolean

Defines whether the text is shown in bold.

false

italic

Boolean

Defines whether the text is shown in italics.

false

sortingButtonColor

Color

Defines the color used to display the icons for sorting when not applied.

#ECECEC

sortingButtonActiveColor

Color

Defines the color used to display the icon for sorting when applied.

#5F8DD3

cellPadding

Padding

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

0px

headerCellPadding

Padding

Defines the spacing between the outer boundary of the header entry and its contents. For more information, see here.

0px

Topics in this section:

Actions and events