Skip to content
import GroupInput from "@arcgis/core/widgets/FeatureForm/GroupInput.js";
Inheritance:
GroupInputInputBase<GroupElement>Accessor
Since
ArcGIS Maps SDK for JavaScript 4.27

This is a support class that represents a group of field inputs.

See also

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.
PropertyTypeClass
declaredClass
readonly inherited
initialState
readonly
"collapsed" | "expanded"
label
readonly
type
readonly
"group"
visible
readonly

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

The name of the class. The declared class name is formatted as esri.folder.className.

initialState

readonly Property
Type
"collapsed" | "expanded"
Since
ArcGIS Maps SDK for JavaScript 4.28

Defines if the group should be expanded or collapsed when the form is initially displayed.

Possible ValueDescription
collapsedThe grouped elements appear collapsed.
expandedThe grouped elements appear expanded.
Default value
"expanded"

inputs

Property
Type
NestedInput[]

The field inputs contained within the group.

label

readonly Property
Type
string | null | undefined

The group's label.

open

Property
Type
boolean

Indicates whether or not the group is open, ie. expanded.

type

readonly Property
Type
"group"

The type of input.

visible

readonly Property
Type
boolean

The group's visibility. Note that the grouped input's visibility must be true if any fields within the group are required.

Type definitions

NestedInput

Type definition