dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
ActionButton Class
A customizable button that performs a specific action(s) used in widgets such as the Popup, LayerList, and BasemapLayerList.
ArcGIS Maps SDK for JavaScript
public class ActionButton : dymaptic.GeoBlazor.Core.Components.ActionBase
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 ActionBase 🡒 ActionButton
Constructors
ActionButton() Constructor
Parameterless constructor for use as a Razor Component.
public ActionButton();
ActionButton(string, string, string, Func, string, Nullable, 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 ActionButton(string? title=null, string? image=null, string? actionId=null, System.Func<System.Threading.Tasks.Task>? callbackFunction=null, string? className=null, System.Nullable<bool> active=null, System.Nullable<bool> disabled=null, System.Nullable<bool> visible=null, string? icon=null);
Parameters
title
System.String
The title of the action.
ArcGIS Maps SDK for JavaScript
image
System.String
The URL to an image that will be used to represent the action.
ArcGIS Maps SDK for JavaScript
actionId
System.String
The name of the ID assigned to this action.
callbackFunction
System.Func<System.Threading.Tasks.Task>
The action function to perform on click.
className
System.String
This adds a CSS class to the ActionButton’s node.
ArcGIS Maps SDK for JavaScript
active
System.Nullable<System.Boolean>
Set this property to true
to display a spinner icon.
default false
ArcGIS Maps SDK for JavaScript
disabled
System.Nullable<System.Boolean>
Indicates whether this action is disabled.
default false
ArcGIS Maps SDK for JavaScript
visible
System.Nullable<System.Boolean>
Indicates if the action is visible.
icon
System.String
Calcite icon used for the action.
default null
ArcGIS Maps SDK for JavaScript
Properties
ActionButton.Image Property
The URL to an image that will be used to represent the action. This property will be used as a background image for the node. It may be used in conjunction with the className property or by itself. If neither image nor className are specified, a default icon will display
public string? Image { get; set; }
Property Value
ActionButton.Type Property
Specifies the type of action. Choose between “button” or “toggle”.
public override string Type { get; }
Property Value
Methods
ActionButton.GetImage() Method
Asynchronously retrieve the current value of the Image property.
public System.Threading.Tasks.Task<string?> GetImage();
Returns
System.Threading.Tasks.Task<System.String>
ActionButton.SetImage(string) Method
Asynchronously set the value of the Image property after render.
public System.Threading.Tasks.Task SetImage(string value);
Parameters
value
System.String
The value to set.