Interface
A data record represents a record in a data source.
Properties
| Property | Type | Notes | 
|---|---|---|
| clone | (deep?: boolean) => DataRecord | Create a clone of the data record object.
Use shallow clone by default. If   | 
| dataSource | DataSource | A reference of the data source object that has this record. | 
| getData | () => any | The data is a plain object. The format is {key: value}, and the key is "jimuFieldName". | 
| getFieldValue | (jimuFieldName: string) => any | Return the value of a specific field. | 
| getFormattedData | (intl: IntlShape) => any | Return formatted record. | 
| getFormattedFieldValue | (jimuFieldName: string, intl: IntlShape) => string | Return the formatted value of a specific field. | 
| getGeometry | () => IGeometry | Return geometry of the record. | 
| getId | () => string | Return ID of the record. | 
| setId | (id: string) => void | Set ID of the record. | 
| toJson | () => any | Return the data in JSON format, which is used to serialize data, and the key is "jimuFieldName". | 
clone
Interface Propertyclone: (deep?: boolean) => DataRecordCreate a clone of the data record object.
Use shallow clone by default. If  deep  is  true , will use deep clone.
Type declaration
function(deep?: boolean): DataRecordParameters
| Parameter | Type | 
|---|---|
| deep | boolean | 
Returns
DataRecorddataSource
Interface PropertydataSource: DataSourceA reference of the data source object that has this record.
getData
Interface PropertygetData: () => anyThe 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}.
Type declaration
function(): anyReturns
anygetFieldValue
Interface PropertygetFieldValue: (jimuFieldName: string) => anyReturn the value of a specific field.
Type declaration
function(jimuFieldName: string): anyParameters
| Parameter | Type | 
|---|---|
| jimu | string | 
Returns
anygetFormattedData
Interface PropertygetFormattedData: (intl: IntlShape) => anyReturn formatted record.
Type declaration
function(intl: IntlShape): anyParameters
| Parameter | Type | 
|---|---|
| intl | IntlShape | 
Returns
anygetFormattedFieldValue
Interface PropertygetFormattedFieldValue: (jimuFieldName: string, intl: IntlShape) => stringReturn the formatted value of a specific field.
Type declaration
function(jimuFieldName: string, intl: IntlShape): stringParameters
| Parameter | Type | 
|---|---|
| jimu | string | 
| intl | IntlShape | 
Returns
stringgetGeometry
Interface PropertygetGeometry: () => IGeometryReturn geometry of the record.
Type declaration
function(): IGeometryReturns
IGeometrygetId
Interface PropertygetId: () => stringReturn ID of the record.
Type declaration
function(): stringReturns
string