Skip to content

DataTableColumn

DataTableColumn Properties

Property Type Required Default
DisplayType enum Optional "Text"
EditType enum Optional "Text"
Image Image Optional
ListPicker DataTableListPicker Optional
NumberOfLines integer Optional
OnValueChange ActionOrRule Optional
Style complex Optional
Styles object Optional
Text string Optional
TextAlignment enum Optional "Left"
Value complex Optional

DisplayType

Specify the style to display the value.

  • type: enum
  • default: "Text"

The value of this property must be equal to one of the known values below.

DisplayType Known Values

Value Description
Text
Image

EditType

Specify the style to edit the value. This value is ignored if the display style is image.

  • type: enum
  • default: "Text"

The value of this property must be equal to one of the known values below.

EditType Known Values

Value Description
Text
Date
Time
Duration
List

Image

This property is deprecated. Please use the property Value instead.


ListPicker


NumberOfLines

Data Table generally supports 1 or 2 lines of content. By default, Android platform supports one line of content, and iOS platform displays all content.

  • type: integer

OnValueChange

Action or rule to be executed after the value is changed. In iOS, this event is triggered when the user clicks on another item.


Style

This property is deprecated. Please use the property Styles instead. The string value is a style class name for Text or style class name for Image. For Image, the style is applicable only to SAP icon or font icon types (supported CSS properties are font-size and color). Android doesn't support styling.

  • type: complex

Styles

Set styles for DataTableColumnItem.

  • type: object with following properties.
Property Type Required Default
Text string Optional
Image string Optional
Date string Optional
Time string Optional
Duration string Optional
List string Optional

Text

The string value is a style class name.

Image

The string value is a style class name. The style is applicable only to SAP icon or font icon types (Supported CSS properties are font-size and color).

Date

The string value is a style class name.

Time

The string value is a style class name.

Duration

The string value is a style class name.

List

The string value is a style class name.


Text

This property is deprecated. Please use the property Value instead.

  • type: string

TextAlignment

For Android, only left and right are supported.

  • type: enum
  • default: "Left"

The value of this property must be equal to one of the known values below.

TextAlignment Known Values

Value Description
Left
Right
Center

Value

  • type: complex

Value Value

Any following options needs to be fulfilled.

Option 1

Specify the value in yyyy-MM-dd or yyyy-MM-ddThh:mm:ss format for date, hh:mm:ss format for time & PT[hh]H[mm]M format for duration.

string

Option 2