Interface
A data record represents a record in a data source.
Subclasses: FeatureDataRecord
Properties
Property | Type | Notes |
---|---|---|
(deep?: boolean) => DataRecord | ||
A reference of the data source object that has this record. | ||
() => any | ||
(jimuFieldName: string) => any | ||
(intl: IntlShape) => any | ||
(jimuFieldName: string, intl: IntlShape) => string | ||
() => IGeometry | ||
() => string | ||
(id: string) => void | ||
() => any |
dataSource
Interface PropertydataSource: DataSource
A reference of the data source object that has this record.
getData
Interface PropertygetData: () => any
Type declaration
function(): 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}.
Returns
any
getFieldValue
Interface PropertygetFieldValue: (jimuFieldName: string) => any
Type declaration
function(jimuFieldName: string): any
Return the value of a specific field.
Parameters
Parameter | Type |
---|---|
jimu | string |
Returns
any
getFormattedData
Interface PropertygetFormattedData: (intl: IntlShape) => any
Type declaration
function(intl: IntlShape): any
Return formatted record.
Parameters
Parameter | Type |
---|---|
intl | IntlShape |
Returns
any
getFormattedFieldValue
Interface PropertygetFormattedFieldValue: (jimuFieldName: string, intl: IntlShape) => string
Type declaration
function(jimuFieldName: string, intl: IntlShape): string
Return the formatted value of a specific field.
Parameters
Parameter | Type |
---|---|
jimu | string |
intl | IntlShape |
Returns
string
getGeometry
Interface PropertygetGeometry: () => IGeometry
Type declaration
function(): IGeometry
Return geometry of the record.
Returns
IGeometry
getId
Interface PropertygetId: () => string
Type declaration
function(): string
Return ID of the record.
Returns
string
clone: (deep?: boolean) => DataRecord
Type declaration
function(deep?: boolean): DataRecord
Create a clone of the data record object. Use shallow clone by default. If
deep
istrue
, will use deep clone.Parameters
deep
Returns
DataRecord