dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Model
ListItemPanelContent Class
The content displayed in the ListItem panel.
public class ListItemPanelContent : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 ListItemPanelContent
Properties
ListItemPanelContent.HtmlElementContent Property
The content of the panel as an HTMLElement.
public System.Nullable<Microsoft.AspNetCore.Components.ElementReference> HtmlElementContent { get; set; }
Property Value
System.Nullable<Microsoft.AspNetCore.Components.ElementReference>
ListItemPanelContent.StringContent Property
The content of the panel as a string.
public string? StringContent { get; set; }
Property Value
ListItemPanelContent.WidgetContent Property
The content of the panel as a Widget.
public dymaptic.GeoBlazor.Core.Components.Widgets.Widget? WidgetContent { get; set; }
Property Value
Methods
ListItemPanelContent.RegisterChildComponent(MapComponent) Method
Called from dymaptic.GeoBlazor.Core.Components.MapComponent.OnInitializedAsync to “Register” the current component with its parent.
public override System.Threading.Tasks.Task RegisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);
Parameters
child
MapComponent
The calling, child component to register
Returns
Exceptions
InvalidChildElementException
Throws if the current child is not a valid sub-component to the parent.
Remarks
This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method. If you see no other way to register a child component, please open an issue on GitHub.
ListItemPanelContent.UnregisterChildComponent(MapComponent) Method
Undoes the “Registration” of a child with its parent.
public override System.Threading.Tasks.Task UnregisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);
Parameters
child
MapComponent
The child to unregister
Returns
Remarks
This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method.
ListItemPanelContent.ValidateRequiredChildren() Method
When a MapView is prepared to render, this will check to make sure that all properties with the RequiredPropertyAttribute are provided.
public override void ValidateRequiredChildren();
Implements ValidateRequiredChildren()
Exceptions
MissingRequiredChildElementException
The consumer needs to provide the missing child component
MissingRequiredOptionsChildElementException
The consumer needs to provide ONE of the options of child components