struct TUI::FormEnumOption

Overview

One choice in an EnumField/FlagsField picker: #label is what's shown on screen, #wire_value is what gets persisted (see FormField#value) and what a FieldSpec's current value is matched against on #start.

Defined in:

tui/form/form_field.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(label : String, wire_value : String) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(label _label = @label, wire_value _wire_value = @wire_value) #

[View source]
def label : String #

def wire_value : String #