Skip to content
ConsoleMonster
Class

BindingOptions

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
sealed

Configuration for a display rebuilt from application state; its identity is fixed by Build.

Inheritance

  • object
  • BindingOptions

Usage

Explore 15 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 10

Constructors

public BindingOptions() #

Properties

public string? WidgetId { get; set; } #

The optional live-region identity.

public Func<AppState, IWidget>? Content { get; set; } #

Creates display content from the current state; stable input controls stay in the outer layout.

Extension Methods

public static AppBinding Build(BindingOptions options) #

Creates a state binding after its callback and identity have been configured.

Parameters

options ConsoleMonster.Interactive.BindingOptions required
The configured definition.

Returns

AppBinding The binding.
public static BindingOptions Configure(BindingOptions bindingOptions, Action<BindingOptions> configure) #

Assigns callbacks and related configuration without invoking delegate-valued properties.

Parameters

bindingOptions ConsoleMonster.Interactive.BindingOptions required
The instance.
configure System.Action<ConsoleMonster.Interactive.BindingOptions> required
Assignments applied in order.

Returns

BindingOptions The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::ConsoleMonster.Interactive.BindingOptions { Content = value };    Ui.Binding().Configure(configured => configured.Content = value);
public static BindingOptions WidgetId(BindingOptions bindingOptions, string? value) #

Sets BindingOptions.WidgetId: The optional live-region identity.

Parameters

bindingOptions ConsoleMonster.Interactive.BindingOptions required
The instance.
value string? required
The value.

Returns

BindingOptions The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ConsoleMonster.Interactive.BindingOptions { WidgetId = value };    Ui.Binding().WidgetId(value);