| Name |
Type |
Default value |
Description |
|---|
| AbsolutePosition |
bool |
false |
Lays the panel out against the nearest positioned ancestor instead of against the screen, so that the panel - and the overlay that comes with it - stay inside a container of the page rather than covering all of it. |
| AutoToggleScroll |
bool |
false |
Takes the overflow off the scroller itself while the panel is open and hands it back once it closes, instead of taking the counted hold the panel otherwise takes on the page - the two would else both be holding the same page. The room the scrollbar gave back is what an AbsolutePosition panel is pushed down by. |
| Blocking |
bool |
false |
Keeps a click on the overlay from dismissing the panel, for the panels whose content has to be completed or cancelled through the panel itself. It says nothing about the Escape key or the swipe gesture. |
| Body |
RenderFragment? |
null |
Alias for ChildContent, named for the body it becomes on a panel that was given a header or a footer to lay out around it. |
| ChildContent |
RenderFragment? |
null |
The content of the panel. |
| Classes |
BitPanelClassStyles? |
null |
Custom CSS classes for different parts of the panel. |
| CloseButtonTitle |
string? |
null |
The title and accessible name of the close button, which is what a screen reader reads out for it and what the pointer shows as its tooltip. It defaults to "Close". |
| CloseIcon |
BitIconInfo? |
null |
The icon of the close button, given as the CSS classes of an external icon library. It takes precedence over CloseIconName. |
| CloseIconName |
string? |
null |
The name of the built-in Fluent UI icon of the close button. It defaults to Cancel. |
| Footer |
RenderFragment? |
null |
The footer of the panel, which stays put at the far edge of it while the content between it and the header scrolls. |
| FooterText |
string? |
null |
The text of the footer of the panel, for the footer that is nothing but a line of text. Footer takes precedence over it. |
| FullSize |
bool |
false |
Stretches the panel over the whole of the screen, which takes over from Size and from the cap that otherwise leaves a strip of the page showing beside it. |
| Header |
RenderFragment? |
null |
The header of the panel, which stays put at the edge the panel slid in from while the content below it scrolls. It is also what names the panel to a screen reader, unless TitleAriaId or AriaLabel names it instead. |
| HeaderText |
string? |
null |
The text of the header of the panel, for the header that is nothing but a title. Header takes precedence over it. |
| IsAlert |
bool |
false |
Reports the panel to assistive technologies as an alert dialog rather than a plain one, for the panels that carry an urgent message the user is expected to deal with before carrying on. |
| IsOpen |
bool |
false |
Determines the openness of the panel. |
| KeepMounted |
bool |
false |
Keeps the content of the panel in the page once it has been opened, instead of taking it back out every time the panel closes. Nothing of it is rendered until the first opening either way. |
| ModeFull |
bool |
false |
Renders the overlay in full mode that gives it an opaque background. The overlay catches the clicks meant for the page behind it either way; this is what makes it dim that page as well. |
| Modeless |
bool |
false |
Leaves the page its own clicks while the panel is open, by not rendering the overlay that otherwise covers it. A modeless panel does not report itself as a modal dialog and does not keep the keyboard inside itself. |
| NoAutoFocus |
bool |
false |
Leaves the focus where it is when the panel opens, instead of moving it into the panel. An element in the content marked with a data-autofocus attribute takes the focus instead of the first focusable one. The Escape key reaches the panel from wherever the keyboard is inside it, so a panel that never took the keyboard over is also one Escape does not reach until the user has tabbed or clicked into it. |
| NoDismissOnEscape |
bool |
false |
Keeps the Escape key from dismissing the panel, for the panels that are only meant to be closed through their own content. |
| NoFocusTrap |
bool |
false |
Lets the keyboard leave the panel while it is open, instead of cycling Tab and Shift+Tab inside it. A Modeless panel never traps the focus. |
| NoRestoreFocus |
bool |
false |
Leaves the focus wherever the panel left it when it closes, instead of handing it back to the element that had it before the panel opened. Nothing is recorded for a panel that hands nothing back. |
| NoScrollLock |
bool |
false |
Leaves the page scrolling behind the open panel, instead of holding it still. A Modeless panel never holds the page anyway, and one doing its own scroll handling through AutoToggleScroll holds its scroller itself. The gestures that land on a panel holding nothing are handed on to the scroller it names. |
| NoSwipe |
bool |
false |
Turns off the swipe gesture that otherwise dismisses the panel when it is dragged towards the edge it slid in from. |
| OnDismiss |
EventCallback<MouseEventArgs> |
|
A callback function for when the panel is dismissed. It is called for every closing of the panel: the close button, the overlay, the Escape key, a swipe, the Close and Toggle methods, and the IsOpen parameter being set to false from the outside. |
| OnDismissing |
EventCallback<BitPanelDismissArgs> |
|
A callback function invoked before the panel closes, which lets the closing be refused by setting Cancel on the arguments it is given, and tells the closings apart through their Reason. The IsOpen parameter being set to false from the outside never passes through it. |
| OnEscapeKeyDown |
EventCallback<KeyboardEventArgs> |
|
A callback function for when the Escape key is pressed inside the panel. It is called for every Escape, including the ones a panel with NoDismissOnEscape refuses to be dismissed by, which makes it the counterpart of OnOverlayClick for the keyboard. |
| OnOpen |
EventCallback |
|
A callback function for when the panel is opened. |
| OnOverlayClick |
EventCallback<MouseEventArgs> |
|
A callback function for when a click lands on the overlay of the panel. It is called before the panel is dismissed, and it is called for a Blocking panel too. |
| OnSwipeStart |
EventCallback<decimal> |
|
The event callback for when the swipe action starts on the container of the panel. |
| OnSwipeMove |
EventCallback<decimal> |
|
The event callback for when the swipe action moves on the container of the panel. |
| OnSwipeEnd |
EventCallback<decimal> |
|
The event callback for when the swipe action ends on the container of the panel. |
| OnToggle |
EventCallback<bool> |
|
A callback function for when the panel opens or closes, called with the new open state. |
| OnTransitionEnd |
EventCallback<bool> |
|
A callback function for when the panel has finished sliding in or out, called with the state it settled in. OnOpen, OnDismiss and OnToggle are called on the frame the panel changed state on, which is the start of the movement rather than the end of it. |
| Position |
BitPanelPosition? |
null |
The edge of the screen the panel slides in from. Start and End are the logical edges, so they follow the direction of the panel. It defaults to End. |
| Role |
string? |
null |
The ARIA role the panel reports itself under, which takes over from the dialog it is announced as by default. It is for the panel that is not a dialog at all: a Modeless panel left beside the page is better announced as a complementary or a region. |
| Size |
double? |
null |
The size of the panel in pixels along the axis it slides on: the width of a panel at the start or the end of the screen, and the height of one at the top or the bottom. A size that is not a pixel value is given through the Container member of Styles. |
| ScrollerElement |
ElementReference? |
null |
The element reference of the scroller whose scrolling is taken away while the panel is open, for the layouts whose scroller cannot be named by a selector. It takes precedence over ScrollerSelector, and over the scroller a BitAppShell cascades. |
| ScrollerSelector |
string? |
null |
The CSS selector of the element whose scrolling is held while the panel is open, for the layouts whose scroller is not the page itself. A panel inside a BitAppShell holds the shell's scroller without being told to; the body of the document is what is held when there is no shell and this is not set. |
| ShowCloseButton |
bool |
false |
Shows the close button of the panel, at the end of the header row. It is what a Blocking or a Modeless panel needs to be closable with the pointer at all. |
| Styles |
BitPanelClassStyles? |
null |
Custom CSS styles for different parts of the panel component. |
| SubtitleAriaId |
string? |
null |
The ARIA id of the element that describes the panel, which is what a screen reader reads out after the name of the panel when it opens. |
| SwipeTrigger |
decimal? |
null |
How far the panel has to be dragged towards the edge it slid in from before it is dismissed, as a fraction of its own size (default is 0.25). Values outside of the range greater than zero and no more than one fall back to the default. |
| TitleAriaId |
string? |
null |
The ARIA id of the element that names the panel, which is what a screen reader reads out when the panel opens. It defaults to the Header of the panel, and AriaLabel takes precedence over both. |
| ZIndex |
int? |
null |
The layer the panel and its overlay are stacked at, which takes over from the one the whole library shares. The overlay takes this value and the panel itself sits one above it, which is what a panel opened from inside another one needs. |