class Opal::FormModule::MultiSelectField

Overview

Multi-select toggle field with checkboxes

Defined in:

opal/form/field.cr

Constructors

Instance Method Summary

Instance methods inherited from class Opal::FormModule::FormField

error : String | Nil error, error=(error : String | Nil) error=, focused=(focused : Bool) focused=, focused? : Bool focused?, handle_key(key : Terminal::Key) : Bool handle_key, label : String label, name : String name, raw_value : String | Bool | Array(String) raw_value, render(buffer : UI::Buffer, x : Int32, y : Int32, width : Int32) : Int32 render, value_as_s : String value_as_s

Constructor methods inherited from class Opal::FormModule::FormField

new(name : String, label : String) new

Constructor Detail

def self.new(name : String, label : String, options : Array(String), initial_selected : Array(String) = [] of String) #

[View source]

Instance Method Detail

def handle_key(key : Terminal::Key) : Bool #

[View source]
def options : Array(String) #

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

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

[View source]
def selected : Set(String) #

[View source]
def selected=(selected : Set(String)) #

[View source]
def sub_cursor : Int32 #

[View source]
def sub_cursor=(sub_cursor : Int32) #

[View source]