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

On Android platform, if the property value is set to one or two, 1st and 2nd line of the content will be displayed respectively. But if the property value is more than 2, only the first two lines will be displayed irrespective of value assigned to the property and content length. In the instances where the property value is missing, only the first line of the content gets displayed. This property is not supported for header and only first line of the content gets displayed.

However, iOS platform restricts and displays the content based on the property value mentioned. If the value is set to 6, only 6 lines of content will be displayed, irrespective of the actual content length. In the instances where the property value is missing, the entire content gets displayed.

  • 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