IconToggle

Description

A group of icon buttons of which exactly one is selected at a time, like a segmented control. Each item carries a UIcons glyph, a tooltip and an arbitrary data payload, which is exposed through the typed Selected property.

Usage

API reference

class

IconToggle<T>

public class IconToggle<T> : IComponent

A group of icon buttons of which exactly one is selected at a time, like a segmented control.

Namespace
Tesserae
Implements
IComponent

Constructors

NameDescription
IconToggleInitializes a new instance of this class.
Constructor
IconToggle
public IconToggle(Item[] items)

Initializes a new instance of this class.

Methods

NameDescription
RenderRenders the component's root HTML element.
SelectConfigures the component to select.
AsObservableReturns the component's state as a(n) observable.
Method
IconToggle.Render
public HTMLElement Render()

Renders the component's root HTML element.

Method
IconToggle.Select
public void Select(T item)

Configures the component to select.

Method
IconToggle.AsObservable
public IObservable<T> AsObservable()

Returns the component's state as a(n) observable.

See also

© 2026 Curiosity. All rights reserved.