class

UI::FormSelect(T)

Inherits BaseComponent < HtmxHelper < DateFormatHelper < Rosetta::Translatable < Rosetta::Translatable < Lucky::BaseComponent < Lucky::HTMLBuilder < Lucky::SelectHelpers < Lucky::LabelHelpers < Lucky::InputHelpers < Lucky::SvgInliner < Lucky::LiveReloadTag < Lucky::TagDefaults < Lucky::RenderIfDefined < Lucky::HelpfulParagraphError < Lucky::MountComponent < Lucky::ForgeryProtectionHelpers < Lucky::TimeHelpers < Lucky::UrlHelpers < Lucky::HTMLTextHelpers < Lucky::TextHelpers < Lucky::NumberToCurrency < Lucky::AssetHelpers < Lucky::Assignable < Lucky::SpecialtyTags < Lucky::FormHelpers < Habitat::SettingsHelpers < Habitat::TempConfig < Lucky::LinkHelpers < Lucky::CustomTags < Lucky::CheckTagContent < Lucky::BaseTags < Lucky::CheckTagContent < Reference < Object

Constants

ASSIGNS = [label_text : String, name : String, options : Array(T) | Array(Tuple(String, String)), selected_value : String | Int64 | Nil = nil, prompt : String | ::Nil = nil, required : Bool = false, hint : String | ::Nil = nil, option_value : Proc(T, String) | ::Nil = nil, option_label : Proc(T, String) | ::Nil = nil] of Nil

Constructors

new(label_text : String, name : String, options : Array(T) | Array(Tuple(String, String)), selected_value : String | Int64 | Nil = nil, prompt : String | Nil = nil, required : Bool = false, hint : String | Nil = nil, option_value : Proc(T, String) | Nil = nil, option_label : Proc(T, String) | Nil = nil, **unused_exposures)
new(label_text : String, name : String, options : Array(T) | Array(Tuple(String, String)), selected_value : String | Int64 | Nil = nil, prompt : String | Nil = nil, required : Bool = false, hint : String | Nil = nil, option_value : Proc(T, String) | Nil = nil, option_label : Proc(T, String) | Nil = nil, **unused_exposures)

Class methods

file_location

Returns the relative file location to the project root. e.g. src/components/my_component.cr

Source

Instance methods

hint
label_text
name
option_label
option_value
options
prompt
render
Source
required?
selected_value