Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a data item to display in a collection use in a ComboBox for example.

Hierarchy

  • DataItem

Index

Constructors

Properties

Methods

Constructors

constructor

  • new DataItem(display: string, value: any, typeName?: string): DataItem
  • Initializes a new instance of the DataItem class.

    Parameters

    • display: string

      The text to display to the user.

    • value: any

      The value held by the DataItem.

    • Optional typeName: string

      The type name of the value.

    Returns DataItem

Properties

display

display: string

The text to display in an items control.

typeName

typeName: string

The type of the .NET runtime type name of the value on the server.

value

value: any

The value to return when the data item is selected.

Methods

getValue

  • getValue(): any
  • Gets the value of the dataItem.

    Returns any