CardPivot
Description
A pivot using cards
A CardPivot is a tabbed interface where the tabs are presented as connected cards with a shared border. It is useful for displaying selectable metrics that control the view below them.
Sample
API reference
public sealed class CardPivot : IComponent, ISpecialCaseStyling, IBindableComponent<string>A pivot variant that styles each tab as a card, used for dashboard-style switching between rich panels.
- Namespace
- Tesserae
- Implements
- IComponent, ISpecialCaseStyling, IBindableComponent<string>
Constructors
| Name | Description |
|---|---|
| CardPivot | Initializes a new instance of this class. |
Properties
| Name | Description |
|---|---|
| StylingContainer | Gets the HTMLElement that should receive styling. Exposing the root as the styling container (via ISpecialCaseStyling) lets sizing helpers like .S() / .Grow() write directly onto the pivot instead of an extra wrapper when it is placed inside a Stack or Grid, matching Pivot and SegmentedPivot. |
| PropagateToStackItemParent | Gets whether styling should propagate to the stack item parent. |
public HTMLElement StylingContainer { get; }Gets the HTMLElement that should receive styling. Exposing the root as the styling container (via ISpecialCaseStyling) lets sizing helpers like .S() / .Grow() write directly onto the pivot instead of an extra wrapper when it is placed inside a Stack or Grid, matching Pivot and SegmentedPivot.
Methods
| Name | Description |
|---|---|
| OnBeforeNavigate | Registers a callback invoked when the before navigate event fires. |
| OnNavigate | Registers a callback invoked when the navigate event fires. |
| Select | Configures the component to select. |
| AsObservable | Returns an observable that tracks the id of the currently-selected tab. |
| SetBoundValue | Programmatically selects a tab by id as part of a two-way binding. |
| Render | Renders the component's root HTML element. |
public CardPivot Select(string id, bool refresh = false)Configures the component to select.
public IObservable<string> AsObservable()Returns an observable that tracks the id of the currently-selected tab.
public void SetBoundValue(string value)Programmatically selects a tab by id as part of a two-way binding.