layout: default title: ListItemPanel parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Widgets

ListItemPanel Class

This class allows you to display custom content for each ListItem in the LayerList widget. ListItemPanel objects typically aren’t constructed. Rather, they are modified using the listItemCreatedFunction property in the LayerList widget.
ArcGIS Maps SDK for JavaScript

public class ListItemPanel

Inheritance System.Object 🡒 ListItemPanel

Properties

ListItemPanel.ClassName Property

Adds a CSS class used to style a node that represents the panel. Clicking the node will open and close the panel. Typically, an icon font is used for this property. Esri Icon Fonts are automatically made available and can be used to represent this content. To use one of these provided icon fonts, you must prefix the class name with esri-. For example, the default icon font is esri-icon-layer-list.
Default Value:esri-icon-layer-list

public string? ClassName { get; set; }

Property Value

System.String

ListItemPanel.ContentDivId Property

The HTML Element Id for content displayed in the ListItem panel.

public string? ContentDivId { get; set; }

Property Value

System.String

ListItemPanel.ContentWidgetId Property

The GeoBlazor Id for a Widget to display in the ListItem panel.

public System.Nullable<System.Guid> ContentWidgetId { get; set; }

Property Value

System.Nullable<System.Guid>

ListItemPanel.Disabled Property

If true, disables the ListItem’s panel so the user cannot open or interact with it. The panel will be disabled by default if it does not have content or if it contains a legend with no active content in it.

public System.Nullable<bool> Disabled { get; set; }

Property Value

System.Nullable<System.Boolean>

ListItemPanel.FlowEnabled Property

Indicates whether the panel’s content should be rendered as a Calcite Flow Item. By default, the panel’s content is rendered in the content-bottom slot. Flow is a calcite component that allows for drilling in and out of panels.
Default Value:false

public bool FlowEnabled { get; set; }

Property Value

System.Boolean

ListItemPanel.Icon Property

Icon which represents the widget. It is typically used when the widget is controlled by another one (e.g. in the Expand widget).
Default Value:null

public string? Icon { get; set; }

Property Value

System.String

ListItemPanel.Image Property

The URL or data URI of an image used to represent the panel. This property will be used as a background image for the node. If neither image nor className are specified, a default icon default icon will display.

public string? Image { get; set; }

Property Value

System.String

ListItemPanel.Label Property

The widget’s label.

public string? Label { get; set; }

Property Value

System.String

ListItemPanel.Open Property

Indicates if the panel’s content is open and visible to the user. This is different from the visible property, which is used for toggling the visibility of the icon used to control whether the content is expanded or collapsed.
Default Value:false

public bool Open { get; set; }

Property Value

System.Boolean

ListItemPanel.ShowLegendContent Property

Defaults the panel to display a LegendWidget as content.

public System.Nullable<bool> ShowLegendContent { get; set; }

Property Value

System.Nullable<System.Boolean>

ListItemPanel.StringContent Property

Raw text to display in the ListItem panel.

public string? StringContent { get; set; }

Property Value

System.String

ListItemPanel.Title Property

The title of the panel. By default, this title matches the ListItem’s title. Changing this value will not change the title of the ListItem in the LayerList.

public string? Title { get; set; }

Property Value

System.String

ListItemPanel.Visible Property

Indicates if the node containing the image or className is visible to the user. Setting this value to false will prevent the user from toggling the visibility of the panel’s content. Use open to programmatically set the visibility of the panel’s content.
Default Value:true

public bool Visible { get; set; }

Property Value

System.Boolean