Skip to content
ConsoleMonster

API Reference

Class

FormOptions

Namespace ConsoleMonster.Interactive
Assembly ConsoleMonster
Modifiers sealed

How a form is shown on its own.

Inheritance

  • Object
  • FormOptions

Usage

Explore 2 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.

Accepted by parameters 2

Constructors

public FormOptions() #

Properties

public InteractiveOptions? Interactive { get; set; } #

Interaction settings (mode, input, profile, theme, labels).

public String? AppName { get; set; } #

The app name presets and remembered choices are stored under; null disables both.

public Boolean RememberLastChoices { get; set; } #

Whether the last submitted values are remembered and offered next time (opt-in).

public String? StorageRoot { get; set; } #

The folder for the app's storage folder; null uses the per-user default.

public Boolean Inline { get; set; } #

Draws the form in the scrollback instead of on the alternate screen.

public String? Preset { get; set; } #

A preset to apply before showing.

public Action<MenuContext>? AfterSubmit { get; set; } #

Called with the submitted values (on the form's screen, full-screen mode): call context.Run(dashboard, work) to run the work with a live dashboard in the form's own frame, ending on a results summary, so the last step, the run and the result read as one screen. The run's result is on FormResult.RunResult.