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, layerid) → {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 |
layerid |
Integer | optional. specifies which sublayer is being transformed |
Returns:
attribute data transformed into a list, with potential field aliasing applied
- Type
- Array
checkDateType(attribName) → {Promise}
- Source:
Test if an attribute field has a date data type.
Parameters:
Name | Type | Description |
---|---|---|
attribName |
String | the attribute name to check if it's a date field |
Returns:
resolves with a boolean indicating if attrib name is a date field.
- Type
- Promise
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