new AttribFC()
- Source:
Methods
(static) aliasedFieldNameDirect(attribName, fields) → {String}
- 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 | 
| fields | Array | list of field definition objects (esri format) for the layer. | 
Returns:
the best available user friendly attribute name
- Type
- String
(static) unAliasAttribs(attribs, fields) → {Object}
- Source:
Convert an attribute set so that any keys using aliases are converted to proper fields
Parameters:
| Name | Type | Description | 
|---|---|---|
| attribs | Object | attribute key-value mapping, potentially with aliases as keys | 
| fields | Array | fields definition array for layer | 
Returns:
attribute key-value mapping with fields as keys
- Type
- Object
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
checkDateType(attribName) → {Promise}
- Source:
Check to see if the attribute in question is an esriFieldTypeDate type.
Parameters:
| Name | Type | Description | 
|---|---|---|
| attribName | String | the attribute name we want to check if it's a date or not | 
Returns:
resolves to true or false based on the attribName type being esriFieldTypeDate
- Type
- Promise