PivotSelector

Description

A control to select a pivot

PivotSelector is a variation of the Pivot component that uses a Dropdown for navigation. It is particularly effective for mobile-first designs or interfaces with a large number of tabs that would otherwise require excessive horizontal scrolling.

Samples

Basic PivotSelector

PivotSelector with custom buttons

PivotSelector with large number of tabs

API reference

class

PivotSelector

public class PivotSelector : IComponent, ISpecialCaseStyling, IBindableComponent<string>

A standalone tab-selector strip that drives an external Pivot, used when the strip needs to be positioned independently of its panels.

Namespace
Tesserae
Implements
IComponent, ISpecialCaseStyling, IBindableComponent<string>

Constructors

NameDescription
PivotSelectorInitializes a new instance of this class.
Constructor
PivotSelector
public PivotSelector()

Initializes a new instance of this class.

Properties

NameDescription
StylingContainerGets 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 selector instead of an extra wrapper when it is placed inside a Stack or Grid, matching the pivot family.
PropagateToStackItemParentGets whether styling should propagate to the stack item parent.
Property
PivotSelector.StylingContainer
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 selector instead of an extra wrapper when it is placed inside a Stack or Grid, matching the pivot family.

Property
PivotSelector.PropagateToStackItemParent
public bool PropagateToStackItemParent

Gets whether styling should propagate to the stack item parent.

Methods

NameDescription
OnBeforeNavigateRegisters a callback invoked when the before navigate event fires.
OnNavigateRegisters a callback invoked when the navigate event fires.
SetCommandsSets the commands of the component.
SelectConfigures the component to select.
AsObservableReturns an observable that tracks the id of the currently-selected tab.
SetBoundValueProgrammatically selects a tab by id as part of a two-way binding.
RenderRenders the component's root HTML element.
Method
PivotSelector.OnBeforeNavigate
public PivotSelector OnBeforeNavigate(PivotEventHandler<PivotBeforeNavigateEvent> onBeforeNavigate)

Registers a callback invoked when the before navigate event fires.

Method
PivotSelector.OnNavigate
public PivotSelector OnNavigate(PivotEventHandler<PivotNavigateEvent> onNavigate)

Registers a callback invoked when the navigate event fires.

Method
PivotSelector.SetCommands
public PivotSelector SetCommands(params IComponent[] commands)

Sets the commands of the component.

Method
PivotSelector.Select
public PivotSelector Select(string id, bool refresh = false)

Configures the component to select.

Method
PivotSelector.AsObservable
public IObservable<string> AsObservable()

Returns an observable that tracks the id of the currently-selected tab.

Method
PivotSelector.SetBoundValue
public void SetBoundValue(string value)

Programmatically selects a tab by id as part of a two-way binding.

Method
PivotSelector.Render
public HTMLElement Render()

Renders the component's root HTML element.

See also

© 2026 Curiosity. All rights reserved.