PluginFormFieldOption14.1
Class in Unbroken.LaunchBox.Plugins.Models.Forms
public sealed class PluginFormFieldOption
Defines one value and literal label available to a choice form field.
Constructors
PluginFormFieldOption(string, string)Initializes a new instance of the PluginFormFieldOption class.PluginFormFieldOption(string, PluginText)Initializes a choice with a localizable, formattable label.
PluginFormFieldOption(string, string)
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)
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
public PluginText Label { get; }Gets the localizable, formattable label and its fallback format.
Value
public string Value { get; }Gets the stable value submitted to the plugin when selected.