TextPicker

<< 点击显示目录 >>

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

TextPicker

Widget "TextPicker" shows a list from which the user can select an element. The list is shown as a selection wheel here with the selected element always shown in the center of the list.

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

zIndex, left, top, height, width

Appearance

textpicker_editor

textpicker_browser

Editor

Web browser

Properties

Name

Type

Description

Bindable

Necessary

Default value

ellipsis

Boolean

Defines whether a text that is too long should be indicated by an ellipsis, e.g. "This text is..." instead of "This text is too long".

For more information, see here.

 

 

false

wordWrap

Boolean

Defines whether a break will be added to the text after a word if necessary.

This option has no effect if "multiLine" is set to value false. For more information, see here.

 

 

false

multiLine

Boolean

Defines whether the text can be shown in multiple lines.

If "wordWrap" has value true, a break is added to the text after a word or at an explicitly defined line break (\n) if necessary. For more information, see here.

 

 

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 "disabled..." style is displayed at runtime. 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

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).

 

 

 

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

UInteger

Defines the index of the list entry to be selected. The first entry has index 0.

check

 

0

selectedValue

String

Defines the value of the element to be selected. If the value is in the data list for the widget, this element is selected.

check

 

 

dataProvider

ItemCollection

Defines the entries in the list.

"dataProvider" is composed of a value and optional text for each entry.

Example: [{'value':4,'text':'Entry1'},{'value':2,'text':'Entry2'}]

check

 

 

submitOnChange

Boolean

Defines whether changes, such as entry of a different value, should be submitted to the server immediately. Submit immediately = true.

 

 

true

itemPadding

PixelVal

Defines the vertical distance between two entries in the list.

 

 

10px

itemAlign

HorizontalPosition

Defines the horizontal alignment of entries in the list.

 

 

center

itemHeight

PixelVal

Defines the height of entries in the list.

 

 

40px

minItemWidth

UInteger

Defines the minimum width of an unselected entry in relation to a selected entry as a percentage.

 

 

50

maxItemWidth

UInteger

Defines the maximum width of an unselected entry in relation to a selected entry as a percentage.

 

 

100

imageAlign

ImagePosition

Position of the image relative to the text. For more information, see here.

 

 

left

imagePath

DirectoryPath

Path to a list of images that can be displayed on the entries (e.g. 'Media/images/').

The names of the images must match the indices of dataProvider (e.g. 0.png, 1.png, 2.png) in order to display an image on the associated entry. The file extension must be PNG.

 

 

 

padding

Padding

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

 

 

10px

textAlign

TextAlign

Defines the orientation of the text.

 

 

center

style

StyleReference

Reference to a customizable widget style.

check

 

default

width

Size

Defines the total width of the widget in pixels.

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

 

 

150

height

Size

Defines the total height of the widget in pixels.

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

 

 

150

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

 

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 TextPicker with the keyboard.

 

 

-1

Styleable properties

Name

Type

Description

Default value

cornerRadius

PixelValCollection

Defines the corner style of the widget.

0px

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

borderColor

ColorCollection

Defines the color of the border around the widget.

#535353

backColor

Color

Defines the background color of the widget.

#FFFFFF

backGroundGradient

Gradient

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

 

markerHeight

PixelVal

Defines the height of the marking lines around the selected entry.

2px

markerColor

Color

Defines the color of the marking lines around the selected entry.

#FF8800

opacity

Opacity

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

1

itemTextColor

Color

Defines the color used to display the text.

#000000

itemShadow

Shadow

Defines the shadow for entries in the list.

none

itemCornerRadius

PixelValCollection

Defines the corner style of the entries in the list.

0px

itemBorderStyle

BorderStyle

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

solid

itemBorderWidth

PixelValCollection

Defines the width of the border around the entries.

1px

itemBorderColor

ColorCollection

Defines the color of the border around the entries.

#535353

itemBackColor

Color

Defines the background color of the entries.

#FFFFFF

itemBackGroundGradient

Gradient

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

 

itemActiveBorderWidth

PixelValCollection

Defines the width of the border around the selected entry.

2px

itemActiveBorderColor

ColorCollection

Defines the color of the border around the selected entry.

#000000

itemActiveBackColor

Color

Defines the background color of the selected entry.

#FF8800

itemActiveBackGroundGradient

Gradient

Defines the background color of the selected entry as a color gradient.

 

itemActiveTextColor

Color

Defines the color used to display the text in the selected entry.

#FFFFFF

disabledBorderColor

ColorCollection

Defines the color of the border around the widget in the disabled state.

#535353

disabledBackColor

Color

Defines the background color of the widget in the disabled state.

#F1F1F1

disabledBackGroundGradient

Gradient

Defines the background color of the widget as a color gradient in the disabled state.

 

disabledItemTextColor

Color

Defines the color of the text in the disabled state.

#C8C8C8

disabledItemBorderColor

ColorCollection

Defines the color of the border around the entries in the disabled state.

#C8C8C8

disabledItemBackColor

Color

Defines the background color of the entries in the disabled state.

#FFFFFF

disabledItemBackGroundGradient

Gradient

Defines the background color of the entries in the disabled state as a color gradient.

 

disabledItemActiveBorderColor

ColorCollection

Defines the color of the border around the selected entry in the disabled state.

#5B5B5B

disabledItemActiveBackColor

Color

Defines the background color of the selected entry in the disabled state.

#8E8E8E

disabledItemActiveBackGroundGradient

Gradient

Defines the background color of the selected entry in the disabled state as a color gradient.

 

disabledItemActiveTextColor

Color

Defines the color of the text of the selected entry in the disabled state.

#5B5B5B

disabledMarkerColor

Color

Defines the color of the marking lines around the selected entry in the disabled state.

#E0E0E0

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

bold

Boolean

Defines whether the text is shown in bold.

false

italic

Boolean

Defines whether the text is shown in italics.

false

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

Topics in this section:

Actions and events