Splitter
Since 0.1.0-alpha.21IzzyBlazor.Splitter in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly
and its doc comments.
Properties (5)
OrientationOrientation = Orientation.HorizontalOrientation.Horizontal puts the panes side by side, the default; Orientation.Vertical stacks them.
LayoutKeystring?Keeps the sizes each person leaves, in a cookie under this name, so the server draws them on the first paint. Letters, digits, - and _. Without it, sizes last until the page is left.
OnePaneBelowBreakpoint?Below this width the splitter shows one pane, filling it, with no bars: the SplitterPane marked Current, or the first when none is. For a list and its detail on a phone. The sizes come back when the window widens.
Disabledbool = falseStops the bars from moving and the panes from collapsing.
ChildContentRenderFragment?The SplitterPanes.
Events (0)
No events.
Parts (1)
Components written inside Splitter, documented here with it.
SplitterPane
One pane of a Splitter. Every pane after the first draws the bar before it, which resizes it and the pane before.
SizeLength?The size the pane starts at: Length.Rem(16), Length.Px(240), Length.Percent(35). A pane with none fills what's left. When dragged, a percentage stays a percentage, so the pane keeps its share as the window resizes; other lengths are held in pixels.
MinLength?The smallest the pane can be made.
MaxLength?The largest the pane can be made.
Collapsiblebool = falseLets the pane collapse: Enter on the bar beside it, the bar's menu, its button on the bar, or dragging the bar past its Min.
@bind-Collapsedbool = falseCollapses the pane, which must be Collapsible. The bar stays, so it can be restored.
Currentbool = falseWith the splitter's OnePaneBelow, the pane that shows below that width. Mark one; with none marked, the first pane shows.
Resizablebool = trueLets the bars beside the pane move it. Defaults to true.
Labelstring?What the pane holds, such as "Folders". It names the bar after the pane ("Resize Folders") and its collapse button.
Idstring?The pane's id. Generated when not set.
ChildContentRenderFragment?The content. It scrolls inside the pane when it doesn't fit.
Plus 4 common props.
Types (3)
Breakpoint
enumThe responsive breakpoints. Mobile first: a value at a breakpoint applies from that width upward.
| Value | Description |
|---|---|
Sm | 640px and wider. |
Md | 768px and wider. |
Lg | 1024px and wider. |
Xl | 1280px and wider. |
Xxl | 1536px and wider: for where an AppAside shows, and HiddenFrom/VisibleFrom. AppSidebar's and SiteNav's breakpoints, and responsive values ( |
Length
structA width, height or flex basis: a size token, a keyword, or a CSS length built with a factory such as Rem.
| Member | Description |
|---|---|
Sm | 640px (matches the |
Md | 768px (matches the |
Lg | 1024px (matches the |
Xl | 1280px (matches the |
Prose | A comfortable reading width, 68 characters. |
Full | 100% of the containing block. |
Auto |
|
FitContent |
|
MinContent |
|
MaxContent |
|
Px(double value) | Pixels. |
Rem(double value) | Root ems (16px each by default). |
Percent(double value) | Percent of the containing block. |
Ch(double value) | Character widths, for text measures. |
Vw(double value) | Percent of the viewport width. |
Dvh(double value) | Percent of the dynamic viewport height (accounts for mobile browser bars). |
Of(string css) | Any CSS length, such as |
Css string | The CSS value this length renders as. |
Orientation
enumWhether items run across or down.
| Value | Description |
|---|---|
Vertical | Top to bottom. |
Horizontal | Side by side, wrapping when space runs out. |