GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components
TimeSliderAction Class
Definition of an action that can be assigned to the actions property on the TimeSlider or the TimeSliderViewModel. It is displayed in a menu when the user clicks the ellipsis button timeSlider-actions-menu on the TimeSlider widget.
public class TimeSliderAction : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 TimeSliderAction
Constructors
TimeSliderAction() Constructor
Parameterless constructor for use as a Blazor component.
public TimeSliderAction();
TimeSliderAction(string, string, string, Func) Constructor
Parameterized constructor for use in C# code.
public TimeSliderAction(string icon, string actionId, string? title, System.Func<System.Threading.Tasks.Task>? callbackFunction=null);
Parameters
icon
System.String
The name of the icon to display. The value of this property must match the icon name from Calcite UI Icons.
actionId
System.String
Unique identifier of the action.
title
System.String
The title of the action that will be displayed in the menu.
callbackFunction
System.Func<System.Threading.Tasks.Task>
A function that will be called when the action icon is clicked.
Properties
TimeSliderAction.ActionId Property
Unique identifier of the action.
public string? ActionId { get; set; }
Property Value
TimeSliderAction.CallbackFunction Property
The action function to perform on click.
public System.Func<System.Threading.Tasks.Task>? CallbackFunction { get; set; }
Property Value
System.Func<System.Threading.Tasks.Task>
TimeSliderAction.HasCallbackFunction Property
Identifies whether the action has a callback function.
public bool HasCallbackFunction { get; }
Property Value
TimeSliderAction.Icon Property
The name of the icon to display. The value of this property must match the icon name from Calcite UI Icons.
public string? Icon { get; set; }
Property Value
TimeSliderAction.Title Property
The title of the action that will be displayed in the menu.
public string? Title { get; set; }