Class: Playbook::PbRadio::Radio
- Inherits:
-
KitBase
- Object
- ViewComponent::Base
- KitBase
- Playbook::PbRadio::Radio
show all
- Defined in:
- app/pb_kits/playbook/pb_radio/radio.rb
Instance Method Summary
collapse
Methods inherited from KitBase
#object
Methods included from ZIndex
included
Methods included from Spacing
included, #max_width_options, #max_width_props, #max_width_values, #spacing_options, #spacing_props, #spacing_values
Methods included from Classnames
#generate_classname, #generate_classname_without_spacing, included
#initialize, #prop
#pb_rails
Instance Method Details
#body_status ⇒ Object
29
30
31
|
# File 'app/pb_kits/playbook/pb_radio/radio.rb', line 29
def body_status
error ? "negative" : nil
end
|
#classname ⇒ Object
21
22
23
|
# File 'app/pb_kits/playbook/pb_radio/radio.rb', line 21
def classname
generate_classname("pb_radio_kit") + error_class
end
|
#selected ⇒ Object
25
26
27
|
# File 'app/pb_kits/playbook/pb_radio/radio.rb', line 25
def selected
"checked" if checked == true
end
|