IWithEditorBehavior
Functions that are used by the arcgis-hub-entity-editor component
Methods
| Method | Returns | Notes |
|---|---|---|
|
|
Promise<HubEntity> |
Update the internal Entity from the "Editor" structure.
This should only be used by the arcgis-hub-entity-editor component.
For general use, see the |
|
|
Promise<IEditorConfig> |
Get the Entity's ui and schema for the editor |
|
|
Promise<HubEntityEditor> |
Convert the entity into it's "Editor" structure.
This should only be used by the arcgis-hub-entity-editor component.
For general use, see the |
fromEditor
Parameters
| Parameter | Type | Default | Notes |
|---|---|---|---|
| editor Required | HubEntityEditor | ||
| editorContext Optional | IEntityEditorContext |
Returns
getEditorConfig
Get the Entity's ui and schema for the editor
Parameters
| Parameter | Type | Default | Notes |
|---|---|---|---|
| i18nScope Required | string | ||
| type Required | EditorType |
Returns
toEditor
Convert the entity into it's "Editor" structure.
This should only be used by the arcgis-hub-entity-editor component.
For general use, see the toJson():<T> method
Parameters
| Parameter | Type | Default | Notes |
|---|---|---|---|
| editorContext Required | IEntityEditorContext | ||
| include Optional | string[] |
Returns
Interface defined in packages/common/src/core/behaviors/IWithEditorBehavior.ts:11
Update the internal Entity from the "Editor" structure. This should only be used by the arcgis-hub-entity-editor component. For general use, see the
update(Partial<T>)method