require(["esri/layers/Field"], function(Field) { /* code goes here */ });
Name | Type | Summary |
---|---|---|
alias | String | The alias name for the field. |
domain | Domain | Domain associated with the field. |
editable | Boolean | Indicates whether the field is editable. |
length | Number | The field length. |
name | String | The name of the field. |
nullable | Boolean | Indicates if the field can accept null values. |
type | String | The data type of the field. |
String
> aliasDomain
> domainNumber
> lengthString
> nameBoolean
> nullabletrue | false
String
> typeThe data type of the field.
Can be one of the following: "esriFieldTypeSmallInteger", "esriFieldTypeInteger", "esriFieldTypeSingle", "esriFieldTypeDouble", "esriFieldTypeString", "esriFieldTypeDate", "esriFieldTypeOID", "esriFieldTypeGeometry", "esriFieldTypeBlob", "esriFieldTypeRaster", "esriFieldTypeGUID", "esriFieldTypeGlobalID", "esriFieldTypeXML"