GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components.Widgets
AttachmentsWidget Class
This widget allows users to view and edit attachments associated with a feature and is
considered a standalone experience that can be utilized in widgets such Popup and Editor.
ArcGIS Maps SDK for JavaScript
public class AttachmentsWidget : dymaptic.GeoBlazor.Pro.Components.Widgets.ProWidget
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 dymaptic.GeoBlazor.Core.Components.Widgets.Widget 🡒 ProWidget 🡒 AttachmentsWidget
Constructors
AttachmentsWidget() Constructor
Parameterless constructor for use as a Razor Component.
public AttachmentsWidget();
AttachmentsWidget(AttachmentsCapabilities, string, Nullable, Graphic, string, string, MapView, Nullable, AttachmentsViewModel, Nullable, AttachmentsVisibleElements, string) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public AttachmentsWidget(dymaptic.GeoBlazor.Pro.Components.AttachmentsCapabilities? capabilities=null, string? containerId=null, System.Nullable<dymaptic.GeoBlazor.Pro.Enums.AttachmentsDisplayType> displayType=null, dymaptic.GeoBlazor.Core.Components.Graphic? graphic=null, string? icon=null, string? label=null, dymaptic.GeoBlazor.Core.Components.Views.MapView? mapView=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.OverlayPosition> position=null, dymaptic.GeoBlazor.Pro.Components.AttachmentsViewModel? viewModel=null, System.Nullable<bool> visible=null, dymaptic.GeoBlazor.Core.Components.AttachmentsVisibleElements? visibleElements=null, string? widgetId=null);
Parameters
capabilities
AttachmentsCapabilities
Configures the attachment editing functionality that can be performed by the user.
ArcGIS Maps SDK for JavaScript
containerId
System.String
The id of an external HTML Element (div). If provided, the widget will be placed inside that element, instead of on the map.
displayType
System.Nullable<AttachmentsDisplayType>
A string value indicating how to display an attachment.
default “auto”
ArcGIS Maps SDK for JavaScript
graphic
dymaptic.GeoBlazor.Core.Components.Graphic
The graphic for the attachments.
ArcGIS Maps SDK for JavaScript
icon
System.String
Icon which represents the widget.
default “attachment”
ArcGIS Maps SDK for JavaScript
label
System.String
The widget’s label.
ArcGIS Maps SDK for JavaScript
mapView
dymaptic.GeoBlazor.Core.Components.Views.MapView
If the Widget is defined outside of the MapView, this link is required to connect them together.
position
System.Nullable<dymaptic.GeoBlazor.Core.Enums.OverlayPosition>
The position of the widget in relation to the map view.
viewModel
AttachmentsViewModel
The view model for this widget.
ArcGIS Maps SDK for JavaScript
visible
System.Nullable<System.Boolean>
Indicates whether the widget is visible.
default true
ArcGIS Maps SDK for JavaScript
visibleElements
dymaptic.GeoBlazor.Core.Components.AttachmentsVisibleElements
The visible elements that are displayed within the widget.
ArcGIS Maps SDK for JavaScript
widgetId
System.String
The unique ID assigned to the widget when the widget is created.
ArcGIS Maps SDK for JavaScript
Properties
AttachmentsWidget.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
AttachmentsWidget.DisplayType Property
A string value indicating how to display an attachment.
default “auto”
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Pro.Enums.AttachmentsDisplayType> DisplayType { get; set; }
Property Value
System.Nullable<AttachmentsDisplayType>
AttachmentsWidget.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
AttachmentsWidget.Submitting Property
Indicates whether there is currently an attachment being added, updated or deleted.
default false
ArcGIS Maps SDK for JavaScript
public System.Nullable<bool> Submitting { get; set; }
Property Value
System.Nullable<System.Boolean>
AttachmentsWidget.Type Property
The type of widget
public override dymaptic.GeoBlazor.Core.Enums.WidgetType Type { get; }
Property Value
dymaptic.GeoBlazor.Core.Enums.WidgetType
AttachmentsWidget.ViewModel Property
The view model for this widget.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Pro.Components.AttachmentsViewModel? ViewModel { get; set; }
Property Value
AttachmentsWidget.VisibleElements Property
The visible elements that are displayed within the widget.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.AttachmentsVisibleElements? VisibleElements { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Components.AttachmentsVisibleElements
Methods
AttachmentsWidget.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>
AttachmentsWidget.GetDisplayType() Method
Asynchronously retrieve the current value of the DisplayType property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Pro.Enums.AttachmentsDisplayType>> GetDisplayType();
Returns
System.Threading.Tasks.Task<System.Nullable<AttachmentsDisplayType>>
AttachmentsWidget.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>
AttachmentsWidget.GetSubmitting() Method
Asynchronously retrieve the current value of the Submitting property.
public System.Threading.Tasks.Task<System.Nullable<bool>> GetSubmitting();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Boolean>>
AttachmentsWidget.GetViewModel() Method
Asynchronously retrieve the current value of the ViewModel property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Components.AttachmentsViewModel?> GetViewModel();
Returns
System.Threading.Tasks.Task<AttachmentsViewModel>
AttachmentsWidget.GetVisibleElements() Method
Asynchronously retrieve the current value of the VisibleElements property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.AttachmentsVisibleElements?> GetVisibleElements();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.AttachmentsVisibleElements>
AttachmentsWidget.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
AttachmentsWidget.SetDisplayType(Nullable) Method
Asynchronously set the value of the DisplayType property after render.
public System.Threading.Tasks.Task SetDisplayType(System.Nullable<dymaptic.GeoBlazor.Pro.Enums.AttachmentsDisplayType> value);
Parameters
value
System.Nullable<AttachmentsDisplayType>
The value to set.
Returns
AttachmentsWidget.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
AttachmentsWidget.SetViewModel(AttachmentsViewModel) Method
Asynchronously set the value of the ViewModel property after render.
public System.Threading.Tasks.Task SetViewModel(dymaptic.GeoBlazor.Pro.Components.AttachmentsViewModel? value);
Parameters
value
AttachmentsViewModel
The value to set.
Returns
AttachmentsWidget.SetVisibleElements(AttachmentsVisibleElements) Method
Asynchronously set the value of the VisibleElements property after render.
public System.Threading.Tasks.Task SetVisibleElements(dymaptic.GeoBlazor.Core.Components.AttachmentsVisibleElements? value);
Parameters
value
dymaptic.GeoBlazor.Core.Components.AttachmentsVisibleElements
The value to set.
Returns
AttachmentsWidget.ValidateRequiredGeneratedChildren() Method
Validates source-generated child components.
public override void ValidateRequiredGeneratedChildren();
Implements ValidateRequiredGeneratedChildren()