dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
ExpandViewModel Class
Provides the logic for the Expand widget.
ArcGIS Maps SDK for JavaScript
public class ExpandViewModel : dymaptic.GeoBlazor.Core.Components.MapComponent,
dymaptic.GeoBlazor.Core.Interfaces.IViewModel
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 ExpandViewModel
Implements IViewModel
Constructors
ExpandViewModel() Constructor
Parameterless constructor for use as a Razor Component.
public ExpandViewModel();
ExpandViewModel(Nullable, Nullable, string) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public ExpandViewModel(System.Nullable<bool> autoCollapse=null, System.Nullable<bool> expanded=null, string? group=null);
Parameters
autoCollapse
System.Nullable<System.Boolean>
Automatically collapses the expand widget instance when the view’s viewpoint updates.
default false
ArcGIS Maps SDK for JavaScript
expanded
System.Nullable<System.Boolean>
Whether the widget is currently expanded or not.
default false
ArcGIS Maps SDK for JavaScript
group
System.String
This value associates two or more Expand widget instances with each other, allowing one instance to auto collapse when another instance in the same group is expanded.
ArcGIS Maps SDK for JavaScript
Properties
ExpandViewModel.AutoCollapse Property
Automatically collapses the expand widget instance when the view’s viewpoint updates.
default false
ArcGIS Maps SDK for JavaScript
public System.Nullable<bool> AutoCollapse { get; set; }
Property Value
System.Nullable<System.Boolean>
ExpandViewModel.Expanded Property
Whether the widget is currently expanded or not.
default false
ArcGIS Maps SDK for JavaScript
public System.Nullable<bool> Expanded { get; set; }
Property Value
System.Nullable<System.Boolean>
ExpandViewModel.Group Property
This value associates two or more Expand widget instances with each other, allowing one instance to auto collapse when another instance in the same group is expanded.
ArcGIS Maps SDK for JavaScript
public string? Group { get; set; }
Property Value
ExpandViewModel.State Property
The view model’s state.
default disabled
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Core.Enums.ViewModelState> State { get; set; }
Property Value
System.Nullable<ViewModelState>
Methods
ExpandViewModel.GetAutoCollapse() Method
Asynchronously retrieve the current value of the AutoCollapse property.
public System.Threading.Tasks.Task<System.Nullable<bool>> GetAutoCollapse();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Boolean>>
ExpandViewModel.GetExpanded() Method
Asynchronously retrieve the current value of the Expanded property.
public System.Threading.Tasks.Task<System.Nullable<bool>> GetExpanded();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Boolean>>
ExpandViewModel.GetGroup() Method
Asynchronously retrieve the current value of the Group property.
public System.Threading.Tasks.Task<string?> GetGroup();
Returns
System.Threading.Tasks.Task<System.String>
ExpandViewModel.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<ViewModelState>>
ExpandViewModel.GetView() Method
Asynchronously retrieve the current value of the View property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Views.MapView?> GetView();
Returns
System.Threading.Tasks.Task<MapView>
ExpandViewModel.SetAutoCollapse(Nullable) Method
Asynchronously set the value of the AutoCollapse property after render.
public System.Threading.Tasks.Task SetAutoCollapse(System.Nullable<bool> value);
Parameters
value
System.Nullable<System.Boolean>
The value to set.
Returns
ExpandViewModel.SetExpanded(Nullable) Method
Asynchronously set the value of the Expanded property after render.
public System.Threading.Tasks.Task SetExpanded(System.Nullable<bool> value);
Parameters
value
System.Nullable<System.Boolean>
The value to set.
Returns
ExpandViewModel.SetGroup(string) Method
Asynchronously set the value of the Group property after render.
public System.Threading.Tasks.Task SetGroup(string? value);
Parameters
value
System.String
The value to set.
Returns
ExpandViewModel.SetView(MapView) Method
Asynchronously set the value of the View property after render.
public System.Threading.Tasks.Task SetView(dymaptic.GeoBlazor.Core.Components.Views.MapView? value);
Parameters
value
MapView
The value to set.