GeoBlazor Pro

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Components

AttachmentsViewModel Class

Provides the logic for the Attachments widget.
ArcGIS Maps SDK for JavaScript

public class AttachmentsViewModel : dymaptic.GeoBlazor.Core.Components.MapComponent,
dymaptic.GeoBlazor.Core.Interfaces.IViewModel

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 AttachmentsViewModel

Implements dymaptic.GeoBlazor.Core.Interfaces.IViewModel

Constructors

AttachmentsViewModel() Constructor

Parameterless constructor for use as a Razor Component.

public AttachmentsViewModel();

AttachmentsViewModel(AttachmentInfo, AttachmentsCapabilities, Graphic, Nullable, IReadOnlyList) Constructor

Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.

public AttachmentsViewModel(dymaptic.GeoBlazor.Core.Model.AttachmentInfo? activeAttachmentInfo=null, dymaptic.GeoBlazor.Pro.Components.AttachmentsCapabilities? capabilities=null, dymaptic.GeoBlazor.Core.Components.Graphic? graphic=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.AttachmentsMode> mode=null, System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.AttachmentsOrderByInfo>? orderByFields=null);

Parameters

activeAttachmentInfo dymaptic.GeoBlazor.Core.Model.AttachmentInfo

The current AttachmentInfo being edited.
ArcGIS Maps SDK for JavaScript

capabilities AttachmentsCapabilities

Configures the attachment editing functionality that can be performed by the user.
ArcGIS Maps SDK for JavaScript

graphic dymaptic.GeoBlazor.Core.Components.Graphic

The graphic for the attachments.
ArcGIS Maps SDK for JavaScript

mode System.Nullable<dymaptic.GeoBlazor.Core.Enums.AttachmentsMode>

The current mode performed by the user.
default “view”
ArcGIS Maps SDK for JavaScript

orderByFields System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.AttachmentsOrderByInfo>

An array of AttachmentsOrderByInfo indicating the display order for the attachments, and whether they should be sorted in ascending asc or descending desc order.
ArcGIS Maps SDK for JavaScript

Properties

AttachmentsViewModel.ActiveAttachmentInfo Property

The current AttachmentInfo being edited.
ArcGIS Maps SDK for JavaScript

public dymaptic.GeoBlazor.Core.Model.AttachmentInfo? ActiveAttachmentInfo { get; set; }

Property Value

dymaptic.GeoBlazor.Core.Model.AttachmentInfo

AttachmentsViewModel.AttachmentInfos Property

A collection of AttachmentInfo defined on a feature.
ArcGIS Maps SDK for JavaScript

public System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Model.AttachmentInfo>? AttachmentInfos { get; set; }

Property Value

System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Model.AttachmentInfo>

AttachmentsViewModel.Capabilities Property

Configures the attachment editing functionality that can be performed by the user.
ArcGIS Maps SDK for JavaScript

public dymaptic.GeoBlazor.Pro.Components.AttachmentsCapabilities? Capabilities { get; set; }

Property Value

AttachmentsCapabilities

AttachmentsViewModel.Graphic Property

The graphic for the attachments.
ArcGIS Maps SDK for JavaScript

public dymaptic.GeoBlazor.Core.Components.Graphic? Graphic { get; set; }

Property Value

dymaptic.GeoBlazor.Core.Components.Graphic

AttachmentsViewModel.Mode Property

The current mode performed by the user.
default “view”
ArcGIS Maps SDK for JavaScript

public System.Nullable<dymaptic.GeoBlazor.Core.Enums.AttachmentsMode> Mode { get; set; }

Property Value

System.Nullable<dymaptic.GeoBlazor.Core.Enums.AttachmentsMode>

AttachmentsViewModel.OrderByFields Property

An array of AttachmentsOrderByInfo indicating the display order for the attachments, and whether they should be sorted in ascending asc or descending desc order.
ArcGIS Maps SDK for JavaScript

public System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.AttachmentsOrderByInfo>? OrderByFields { get; set; }

Property Value

System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.AttachmentsOrderByInfo>

AttachmentsViewModel.State Property

The current state of the widget.
default “ready”
ArcGIS Maps SDK for JavaScript

public System.Nullable<dymaptic.GeoBlazor.Core.Enums.ViewModelState> State { get; set; }

Property Value

System.Nullable<dymaptic.GeoBlazor.Core.Enums.ViewModelState>

AttachmentsViewModel.SupportsResizeAttachments Property

Defines whether or not the feature supports resizing attachments.
ArcGIS Maps SDK for JavaScript

public System.Nullable<bool> SupportsResizeAttachments { get; set; }

Property Value

System.Nullable<System.Boolean>

Methods

AttachmentsViewModel.AddToOrderByFields(AttachmentsOrderByInfo[]) Method

Asynchronously adds elements to the OrderByFields property.

public System.Threading.Tasks.Task AddToOrderByFields(params dymaptic.GeoBlazor.Core.Components.AttachmentsOrderByInfo[] values);

Parameters

values dymaptic.GeoBlazor.Core.Components.AttachmentsOrderByInfo[]

The elements to add.

Returns

System.Threading.Tasks.Task

AttachmentsViewModel.GetActiveAttachmentInfo() Method

Asynchronously retrieve the current value of the ActiveAttachmentInfo property.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.AttachmentInfo?> GetActiveAttachmentInfo();

Returns

System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.AttachmentInfo>

AttachmentsViewModel.GetAttachmentInfos() Method

Asynchronously retrieve the current value of the AttachmentInfos property.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Model.AttachmentInfo>?> GetAttachmentInfos();

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Model.AttachmentInfo>>

AttachmentsViewModel.GetAttachments() Method

Queries for the attachments on a feature.
ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.AttachmentInfo[]?> GetAttachments();

Returns

System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.AttachmentInfo[]>

AttachmentsViewModel.GetCapabilities() Method

Asynchronously retrieve the current value of the Capabilities property.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Components.AttachmentsCapabilities?> GetCapabilities();

Returns

System.Threading.Tasks.Task<AttachmentsCapabilities>

AttachmentsViewModel.GetGraphic() Method

Asynchronously retrieve the current value of the Graphic property.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Graphic?> GetGraphic();

Returns

System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Graphic>

AttachmentsViewModel.GetMode() Method

Asynchronously retrieve the current value of the Mode property.

public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.AttachmentsMode>> GetMode();

Returns

System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.AttachmentsMode>>

AttachmentsViewModel.GetOrderByFields() Method

Asynchronously retrieve the current value of the OrderByFields property.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.AttachmentsOrderByInfo>?> GetOrderByFields();

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.AttachmentsOrderByInfo>>

AttachmentsViewModel.GetState() Method

Asynchronously retrieve the current value of the State property.

public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.ViewModelState>> GetState();

Returns

System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.ViewModelState>>

AttachmentsViewModel.GetSupportsResizeAttachments() Method

Asynchronously retrieve the current value of the SupportsResizeAttachments property.

public System.Threading.Tasks.Task<System.Nullable<bool>> GetSupportsResizeAttachments();

Returns

System.Threading.Tasks.Task<System.Nullable<System.Boolean>>

AttachmentsViewModel.RemoveFromOrderByFields(AttachmentsOrderByInfo[]) Method

Asynchronously remove an element from the OrderByFields property.

public System.Threading.Tasks.Task RemoveFromOrderByFields(params dymaptic.GeoBlazor.Core.Components.AttachmentsOrderByInfo[] values);

Parameters

values dymaptic.GeoBlazor.Core.Components.AttachmentsOrderByInfo[]

The elements to remove.

Returns

System.Threading.Tasks.Task

AttachmentsViewModel.SetActiveAttachmentInfo(AttachmentInfo) Method

Asynchronously set the value of the ActiveAttachmentInfo property after render.

public System.Threading.Tasks.Task SetActiveAttachmentInfo(dymaptic.GeoBlazor.Core.Model.AttachmentInfo? value);

Parameters

value dymaptic.GeoBlazor.Core.Model.AttachmentInfo

The value to set.

Returns

System.Threading.Tasks.Task

AttachmentsViewModel.SetCapabilities(AttachmentsCapabilities) Method

Asynchronously set the value of the Capabilities property after render.

public System.Threading.Tasks.Task SetCapabilities(dymaptic.GeoBlazor.Pro.Components.AttachmentsCapabilities? value);

Parameters

value AttachmentsCapabilities

The value to set.

Returns

System.Threading.Tasks.Task

AttachmentsViewModel.SetGraphic(Graphic) Method

Asynchronously set the value of the Graphic property after render.

public System.Threading.Tasks.Task SetGraphic(dymaptic.GeoBlazor.Core.Components.Graphic? value);

Parameters

value dymaptic.GeoBlazor.Core.Components.Graphic

The value to set.

Returns

System.Threading.Tasks.Task

AttachmentsViewModel.SetMode(Nullable) Method

Asynchronously set the value of the Mode property after render.

public System.Threading.Tasks.Task SetMode(System.Nullable<dymaptic.GeoBlazor.Core.Enums.AttachmentsMode> value);

Parameters

value System.Nullable<dymaptic.GeoBlazor.Core.Enums.AttachmentsMode>

The value to set.

Returns

System.Threading.Tasks.Task

AttachmentsViewModel.SetOrderByFields(IReadOnlyList) Method

Asynchronously set the value of the OrderByFields property after render.

public System.Threading.Tasks.Task SetOrderByFields(System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.AttachmentsOrderByInfo>? value);

Parameters

value System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.AttachmentsOrderByInfo>

The value to set.

Returns

System.Threading.Tasks.Task

AttachmentsViewModel.ValidateRequiredGeneratedChildren() Method

Validates source-generated child components.

public override void ValidateRequiredGeneratedChildren();

Implements ValidateRequiredGeneratedChildren()