LaunchBoxContributors
On this page

PluginFormFieldOption14.1

Class in Unbroken.LaunchBox.Plugins.Models.Forms

C#
public sealed class PluginFormFieldOption
Defines one value and literal label available to a choice form field.

Constructors

PluginFormFieldOption(string, string)

C#
public PluginFormFieldOption(string value, string label)
Initializes a new instance of the PluginFormFieldOption class.
value
The stable value submitted to the plugin when selected. Empty strings are allowed.
label
The literal label used when localization is unavailable.

PluginFormFieldOption(string, PluginText)

C#
public PluginFormFieldOption(string value, PluginText label)
Initializes a choice with a localizable, formattable label.
value
The stable value submitted to the plugin when selected. Empty strings are allowed.
label
The label, including its required fallback format.

Properties

  • LabelGets the localizable, formattable label and its fallback format.
  • ValueGets the stable value submitted to the plugin when selected.

Label

C#
public PluginText Label { get; }
Gets the localizable, formattable label and its fallback format.

Value

C#
public string Value { get; }
Gets the stable value submitted to the plugin when selected.