new AttribRecord()
- Source:
Methods
aliasedFieldName(attribName) → {Promise}
- Source:
Get the best user-friendly name of a field. Uses alias if alias is defined, else uses the system attribute name.
Parameters:
Name | Type | Description |
---|---|---|
attribName |
String | the attribute name we want a nice name for |
Returns:
resolves to the best available user friendly attribute name
- Type
- Promise
attributesToDetails(attribs, fields) → {Array}
- Source:
Transforms esri key-value attribute object into key value array with format suitable for consumption by the details pane.
Parameters:
Name | Type | Description |
---|---|---|
attribs |
Object | attribute key-value mapping, potentially with aliases as keys |
fields |
Array | optional. fields definition array for layer. no aliasing done if not provided |
Returns:
attribute data transformed into a list, with potential field aliasing applied
- Type
- Array
getFormattedAttributes() → {Promise}
- Source:
Retrieves attributes from a layer for a specified feature index
Returns:
promise resolving with formatted attributes to be consumed by the datagrid and esri feature identify
- Type
- Promise