NE.Standard

Flyout

A popup surface anchored to another component that opens/closes on interaction and hosts arbitrary content.

FlyoutComponent · type key standard.flyout · Layouts

new FlyoutComponent("flyout")

Properties

PropertyTypeDefaultBindingDescription
IsOpen
SetIsOpen · BindIsOpen
bool?falsetwo-wayWhether the flyout is open; two-way, so an anchor click, an outside click or Escape syncs back.
FlyoutPlacement
SetFlyoutPlacement · BindFlyoutPlacement
UIPopupPlacement?UIPopupPlacement.BottomStartone-wayThe preferred placement of the flyout relative to its anchor.
CloseOnBackdrop
SetCloseOnBackdrop · BindCloseOnBackdrop
bool?trueone-wayWhether clicking outside the flyout closes it.
CloseOnEscape
SetCloseOnEscape · BindCloseOnEscape
bool?trueone-wayWhether pressing Escape closes the flyout.

Events

OnOpen(string command)
Registers a command to invoke when the flyout is opened.
OnOpen(string command, params KeyValuePair<string, UIActionArgument>[] arguments)
Registers a command with bound arguments to invoke when the flyout is opened.
OnOpenLiteral(string command, params KeyValuePair<string, object>[] arguments)
Registers a command with literal arguments to invoke when the flyout is opened.
OnClose(string command)
Registers a command to invoke when the flyout is closed.
OnClose(string command, params KeyValuePair<string, UIActionArgument>[] arguments)
Registers a command with bound arguments to invoke when the flyout is closed.
OnCloseLiteral(string command, params KeyValuePair<string, object>[] arguments)
Registers a command with literal arguments to invoke when the flyout is closed.

Methods

SetAnchor(IVisualComponent component)
Sets the anchor region the flyout is positioned relative to.
SetContent(IVisualComponent component)
Sets the content region shown inside the flyout.
Open()
Sets FlyoutComponent.IsOpen to true.
Close()
Sets FlyoutComponent.IsOpen to false.
Common properties (16) — layout, visibility, theme, and the rest every component shares
PropertyTypeDefaultBindingDescription
Visibility
SetVisibility · BindVisibility
UIResponsive<UIVisibility>?Visibleone-wayWhat the component does with the room it was given, optionally overridden per breakpoint (e.g. collapsed from a given width up).
Enabled
SetEnabled · BindEnabled
bool?trueone-wayWhether the component responds to input; false dims it and marks it, and its subtree, inert.
Theme
SetTheme · BindTheme
UIThemeMode?nullone-wayThe theme mode forced on this component's subtree, or null to inherit the ambient theme.
HorizontalAlignment
SetHorizontalAlignment · BindHorizontalAlignment
UIAlignment?UIAlignment.Stretchone-wayWhere the component sits within its grid cell along the horizontal axis.
VerticalAlignment
SetVerticalAlignment · BindVerticalAlignment
UIAlignment?UIAlignment.Stretchone-wayWhere the component sits within its grid cell along the vertical axis.
Width
SetWidth · BindWidth
UIResponsive<UILayoutLength>?nullone-wayThe component width, optionally overridden per breakpoint.
MinWidth
SetMinWidth · BindMinWidth
UIResponsive<UILayoutLength>?nullone-wayThe component minimum width, optionally overridden per breakpoint.
MaxWidth
SetMaxWidth · BindMaxWidth
UIResponsive<UILayoutLength>?nullone-wayThe component maximum width, optionally overridden per breakpoint.
Height
SetHeight · BindHeight
UIResponsive<UILayoutLength>?nullone-wayThe component height, optionally overridden per breakpoint.
MinHeight
SetMinHeight · BindMinHeight
UIResponsive<UILayoutLength>?nullone-wayThe component minimum height, optionally overridden per breakpoint.
MaxHeight
SetMaxHeight · BindMaxHeight
UIResponsive<UILayoutLength>?nullone-wayThe component maximum height, optionally overridden per breakpoint.
ZIndex
SetZIndex · BindZIndex
int?0one-wayThe stacking order within the visual tree.
Margin
SetMargin · BindMargin
UIResponsive<UIThickness>?nullone-wayThe outer spacing around the component, optionally overridden per breakpoint.
Placement
SetPlacement · BindPlacement
UIResponsive<UIGridPlacement>?nullone-wayThe grid placement, optionally overridden per breakpoint.
Loading
SetLoading · BindLoading
bool?falseone-wayWhether the component is in loading state — a live state a controller turns on and off.
ShowContextMenu
SetShowContextMenu · BindShowContextMenu
bool?trueone-wayWhether a right-click opens the IVisualComponent.ContextMenu; on a host with rows, whether it opens any row's. Off, the menu stays in the tree and nothing opens it.