LaunchBoxContributors
On this page

PluginFormDefinition14.1

Class in Unbroken.LaunchBox.Plugins.Models.Forms

C#
public sealed class PluginFormDefinition
Defines an ordered tree of plugin form elements with a flat set of input fields.

Constructors

PluginFormDefinition(IReadOnlyList<PluginFormElement>)

C#
public PluginFormDefinition(IReadOnlyList<PluginFormElement> elements)
Initializes a form containing fields, actions, and groups.
elements
The elements in presentation order. Field IDs must be unique across the entire tree, ignoring case.

PluginFormDefinition(IReadOnlyList<PluginFormField>)

C#
public PluginFormDefinition(IReadOnlyList<PluginFormField> fields)
Initializes a flat form using the existing field-only syntax.
fields
The fields in presentation order. Field IDs must be unique ignoring case.

Properties

  • ElementsGets the root elements in presentation order.
  • FieldsGets all input fields in depth-first presentation order, including fields inside groups.

Elements

C#
public IReadOnlyList<PluginFormElement> Elements { get; }
Gets the root elements in presentation order.

Fields

C#
public IReadOnlyList<PluginFormField> Fields { get; }
Gets all input fields in depth-first presentation order, including fields inside groups.

Remarks

This list is built once. Grouping does not change field IDs or introduce nested submission dictionaries.