dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Functions

DateLabelFormatter(DateTime, DateLabelFormatterType, ElementReference, DateLabelFormatterLayout) Delegate

This function is used by the labelFormatFunction property to specify custom formatting and styling of the min, max and extent labels of the time slider widget.

public delegate System.Threading.Tasks.Task DateLabelFormatter(System.DateTime value, dymaptic.GeoBlazor.Core.Enums.DateLabelFormatterType type, Microsoft.AspNetCore.Components.ElementReference element, dymaptic.GeoBlazor.Core.Enums.DateLabelFormatterLayout layout);

Parameters

value System.DateTime

The date(s) that correspond to labels. When the label type is min or max a single date value will be parsed. When the type is extent value will be a date array with two values. The first and second date in the array correspond the time extent’s start and end values.

type DateLabelFormatterType

The label type that you want to format.

element Microsoft.AspNetCore.Components.ElementReference

The HTML element corresponding to the label type. You can add or modify the default style of individual labels by adding CSS classes to this element. You can also add custom behavior to labels by attaching event listeners to individual elements.

layout DateLabelFormatterLayout

The TimeSlider layout.

Returns

System.Threading.Tasks.Task