DataRecord

Interface

A data record represents a record in a data source.

Subclasses: FeatureDataRecord

Properties

PropertyTypeNotes
(deep?boolean) => DataRecord

Create a clone of the data record object. Use shallow clone by default. If deep is true , will use deep clone.

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

() => any

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

(jimuFieldNamestring) => any

Return the value of a specific field.

(intlIntlShape) => any

Return formatted record.

(jimuFieldNamestring, intlIntlShape) => string

Return the formatted value of a specific field.

() => IGeometry

Return geometry of the record.

() => string

Return ID of the record.

(idstring) => void

Set ID of the record.

() => any

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

clone

Interface Property
clone: (deep?boolean) => DataRecord

Create a clone of the data record object. Use shallow clone by default. If deep is true , will use deep clone.

Type declaration

dataSource

Interface Property
dataSource: DataSource

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

getData

Interface Property
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}.

Type declaration
    function(): any
    Returns 
    any

getFieldValue

Interface Property
getFieldValue: (jimuFieldNamestring) => any

Return the value of a specific field.

Type declaration
    function(jimuFieldNamestring): any
    Parameters
    ParameterType
    jimuFieldName
    string
    Returns 
    any

getFormattedData

Interface Property
getFormattedData: (intlIntlShape) => any

Return formatted record.

Type declaration
    function(intlIntlShape): any
    Parameters
    ParameterType
    intl
    IntlShape
    Returns 
    any

getFormattedFieldValue

Interface Property
getFormattedFieldValue: (jimuFieldNamestring, intlIntlShape) => string

Return the formatted value of a specific field.

Type declaration
    function(jimuFieldNamestring, intlIntlShape): string
    Parameters
    ParameterType
    jimuFieldName
    string
    intl
    IntlShape
    Returns 
    string

getGeometry

Interface Property
getGeometry: () => IGeometry

Return geometry of the record.

Type declaration
    function(): IGeometry
    Returns 
    IGeometry

getId

Interface Property
getId: () => string

Return ID of the record.

Type declaration
    function(): string
    Returns 
    string

setId

Interface Property
setId: (idstring) => void

Set ID of the record.

Type declaration
    function(idstring): void
    Parameters
    ParameterType
    id
    string
    Returns 
    void

toJson

Interface Property
toJson: () => any

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

Type declaration
    function(): any
    Returns 
    any

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