Class EsriField

Hierarchy

  • Accessor
  • JSONSupport
    • EsriField

Constructors

  • Information about each field in a layer.

    Read more...

    Parameters

    • Optional properties: FieldProperties

    Returns EsriField

Properties

alias: string

The display name for the field.

Default

null

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#alias)
declaredClass: string
defaultValue: undefined | null | string | number

The default value set for the field.

Default

undefined

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#defaultValue)
description: string

Contains information describing the purpose of each field.

Read more...

destroyed: boolean
domain: CodedValueDomain | RangeDomain | InheritedDomain

The domain associated with the field.

Default

null

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#domain)
editable: boolean

Indicates whether the field is editable.

Default

true

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#editable)
initialized: boolean
length: number

The field length.

Default

-1

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#length)
name: string

The name of the field.

Default

null

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#name)
nullable: boolean

Indicates if the field can accept null values.

Default

true

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#nullable)
type: "string" | "blob" | "small-integer" | "integer" | "single" | "double" | "long" | "date" | "oid" | "geometry" | "raster" | "guid" | "global-id" | "xml"

The data type of the field.

Default

null

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#type)
valueType: "none" | "binary" | "coordinate" | "count-or-amount" | "date-and-time" | "description" | "location-or-place-name" | "measurement" | "name-or-title" | "ordered-or-ranked" | "percentage-or-ratio" | "type-or-category" | "unique-identifier"

The types of values that can be assigned to a field.

Read more...

Methods

  • Parameters

    • propertyName: string

    Returns any

  • Type Parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Type Parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns EsriField

  • Type Parameters

    • T

    Parameters

    • handles: IHandle | IHandle[]
    • Optional groupKey: Exclude<T, IHandle>

    Returns void

  • Returns void

  • Type Parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Parameters

    • propertyName: string

    Returns any

  • Type Parameters

    • T

    Parameters

    • Optional groupKey: Exclude<T, IHandle>

    Returns boolean

  • Parameters

    • propertyName: string

    Returns void

  • Deprecated

    Since 4.25. Use addHandles(), removeHandles() and hasHandles() instead.

    Parameters

    • handles: IHandle | IHandle[]

    Returns void

  • Type Parameters

    • T

    Parameters

    • Optional groupKey: Exclude<T, IHandle>

    Returns void

  • Type Parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns EsriField

  • Parameters

    • props: HashMap<any>

    Returns EsriField

  • Converts an instance of this class to its ArcGIS portal JSON representation.

    Read more...

    Returns any

  • Parameters

    • path: string | string[]
    • callback: WatchCallback
    • Optional sync: boolean

    Returns WatchHandle

  • Parameters

    • json: any

    Returns EsriField

Generated using TypeDoc