Custom Popup Content

This sample demonstrates how to work with custom content elements within the PopupTemplate's content. There are five types of popup elements: FieldsPopupContent, MediaPopupContent, TextPopupContent, AttachmentsPopupContent, and CustomPopupContent. The CustomPopupContent's value is set via the CreatorFunction property, or by providing child content inside the component. The CreatorFunction property has an event parameter with the selected Feature graphic, and returns an HTML string value to be rendered. The child content of CustomPopupContent can be either HTML content or a GeoBlazor Widget. In this sample, we combine three different types of custom content elements: an image, a SearchWidget, and a CreatorFunction that parses the selected graphic for data.