class

UI::CheckboxList(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 = [items : Array(T), name : String, item_value : Proc(T, String), item_label : Proc(T, String), item_subtitle : Proc(T, String | ::Nil) | ::Nil = nil, show_avatar : Bool = false, max_height : String = "96", selected_values : Array(String) = [] of String] of Nil

Constructors

new(items : Array(T), name : String, item_value : Proc(T, String), item_label : Proc(T, String), item_subtitle : Proc(T, String | Nil) | Nil = nil, show_avatar : Bool = false, max_height : String = "96", selected_values : Array(String) = [] of String, **unused_exposures)
new(items : Array(T), name : String, item_value : Proc(T, String), item_label : Proc(T, String), item_subtitle : Proc(T, String | Nil) | Nil = nil, show_avatar : Bool = false, max_height : String = "96", selected_values : Array(String) = [] of String, **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

item_label
item_subtitle
item_value
items
max_height
name
render
Source
selected_values
show_avatar?