Skip to content
ConsoleMonster
Class

TabOptions

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Implements
IContentOwner
Modifiers
sealed

A retained page definition; its title becomes a stable tab identity at Build.

Inheritance

  • object
  • TabOptions

Usage

Explore 9 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 5

Accepted by parameters 4

Constructors

public TabOptions() #

Methods

public LayoutRegion Build() #

Creates the retained page without running input.

Properties

public string Title { get; set; } #

The unique page label.

public IWidget Content { get; set; } #

The retained subtree of inputs and displays.

Extension Methods

Content 2 overloads
public static TabOptions Content(TabOptions tabOptions, IWidget content) #

Configures this container's content before session ownership.

Parameters

tabOptions ConsoleMonster.Interactive.TabOptions required
The instance.
content ConsoleMonster.Layout.IWidget required
The widget or nested content builder.

Returns

TabOptions The same instance.
public static TabOptions Content(TabOptions tabOptions, Action<ContentBuilder> content) #

Configures this container's content before session ownership.

Parameters

tabOptions ConsoleMonster.Interactive.TabOptions required
The instance.
content System.Action<ConsoleMonster.Layout.ContentBuilder> required
The widget or nested content builder.

Returns

TabOptions The same instance.
public static TabOptions Title(TabOptions tabOptions, string value) #

Sets TabOptions.Title: The unique page label.

Parameters

tabOptions ConsoleMonster.Interactive.TabOptions required
The instance.
value string required
The value.

Returns

TabOptions The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ConsoleMonster.Interactive.TabOptions { Title = value };    Ui.Tab().Title(value);