Overview

Our Blazor Flyout component allows you to display a flyout window in your application. The window consists of the header, body, and footer elements. The header and footer are initially hidden. Set the HeaderVisible and FooterVisible properties to true to display these elements.

The HeaderText, BodyText, and FooterText properties specify text displayed in the Flyout elements.

To show or close the Flyout in code, implement two-way binding for the IsOpen property. Users can click outside the Flyout's boundaries, or press Escape to close the component from the UI.

Placement

FlyoutPosition: Bottom

Use the Position property to specify the Flyout position relative to a target element (PositionTarget) or to a Rectangle object (PositionRectangle). You can specify a list of available values or set the property to the Auto value to allow the Flyout component to determine the most suitable window position.

The Offset and Distance properties set the component offset and distance alongside/from the target element.

Customization

Hover a person's photo to display the Flyout component.
Working Group

Janet Leverling

Sales Representative

Margaret Peacock

Sales Representative

Steven Buchanan

Sales Manager

Michael Suyama

Sales Representative

The Flyout component uses predefined appearance settings if you specify the HeaderText, BodyText, or FooterText property. To customize the flyout window's content and appearance, you can use the following templates:

  • HeaderTextTemplate, BodyTextTemplate, FooterTextTemplate - Allow you to customize a Flyout element text area. These templates replace the text content area only, so the predefined alignment and paddings apply.
  • HeaderTemplate, BodyTemplate, FooterTemplate - Allow you to customize the entire area of Flyout elements. These templates replace all elements within the content, so the predefined appearance settings, content alignment, and paddings have no effect.

Flipping

The Flyout recalculates its position when certain page elements are changed (for instance, when the page is scrolled or resized). Use the RestrictionMode property to restrict the Flyout position.

In this demo, the RestrictionMode property is set to TargetElement and the flyout window position is restricted by the target element's boundaries (RestrictionTarget).

The FitToRestriction property specifies whether the Flyout can overlap restriction boundaries. When the component does not meet the position restrictions, it can be hidden or closed, based on the CloseMode property value.