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.
API reference
public class PivotSelector : IComponentA 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
Constructors
| Name | Description |
|---|---|
| PivotSelector | Initializes a new instance of this class. |
Methods
| Name | Description |
|---|---|
| OnBeforeNavigate | Registers a callback invoked when the before navigate event fires. |
| OnNavigate | Registers a callback invoked when the navigate event fires. |
| SetCommands | Sets the commands of the component. |
| Select | Configures the component to select. |
| Render | Renders the component's root HTML element. |
public PivotSelector SetCommands(params IComponent[] commands)Sets the commands of the component.
public PivotSelector Select(string id, bool refresh = false)Configures the component to select.