DataRecord

Interface

A data record represents a record in a data source.

Subclasses: FeatureDataRecord

Properties

dataSource
dataSource: DataSource

A reference of the data source object that has this record.

getData
getData: () => any

The data is a plain object. The format is {key: value}, and the key is "jimuFieldName".

The data before mapping use this schema: {fieldName: value}. We need to return this schema: {jimuFieldName: value}.

getFieldValue
getFieldValue: (jimuFieldNamestring) => any

Return the value of a specific field.

getFormattedData
getFormattedData: (intlIntlShape) => any

Return formatted record.

getFormattedFieldValue
getFormattedFieldValue: (jimuFieldNamestring, intlIntlShape) => string

Return the formatted value of a specific field.

getGeometry
getGeometry: () => IGeometry

Return geometry of the record.

getId
getId: () => string

Return id of the record.

setId
setId: (idstring) => void

Set id of the record.

toJson
toJson: () => any

Return the data in JSON format, which is used to serialize data, and the key is "jimuFieldName".

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.