abstract class Opal::FormModule::FormField

Overview

Abstract base class for all interactive fields in a multi-field Form.

Direct Known Subclasses

Defined in:

opal/form/field.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def error : String | Nil #

[View source]
def error=(error : String | Nil) #

[View source]
def focused=(focused : Bool) #

[View source]
def focused? : Bool #

[View source]
abstract def handle_key(key : Terminal::Key) : Bool #

[View source]
def label : String #

[View source]
def name : String #

[View source]
abstract def raw_value : String | Bool | Array(String) #

[View source]
abstract def render(buffer : UI::Buffer, x : Int32, y : Int32, width : Int32) : Int32 #

[View source]
def value_as_s : String #

[View source]