Class: Playbook::PbRadio::Radio
- Inherits:
-
Object
- Object
- Playbook::PbRadio::Radio
show all
- Includes:
- ActionView::Context, ActionView::Helpers::FormTagHelper, Playbook::Props
- Defined in:
- app/pb_kits/playbook/pb_radio/radio.rb
Instance Method Summary
collapse
#generate_classname, #initialize, #prop
Instance Method Details
#body_status ⇒ Object
39
40
41
|
# File 'app/pb_kits/playbook/pb_radio/radio.rb', line 39
def body_status
error ? "negative" : nil
end
|
#classname ⇒ Object
27
28
29
|
# File 'app/pb_kits/playbook/pb_radio/radio.rb', line 27
def classname
generate_classname("pb_radio_kit", dark_class) + error_class
end
|
31
32
33
|
# File 'app/pb_kits/playbook/pb_radio/radio.rb', line 31
def input
check_box_tag(name, value, checked)
end
|
#selected ⇒ Object
35
36
37
|
# File 'app/pb_kits/playbook/pb_radio/radio.rb', line 35
def selected
"checked" if checked == true
end
|