Method: Playbook::PbTextInput::AddOn#border_css
- Defined in:
- app/pb_kits/playbook/pb_text_input/add_on.rb
#border_css ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'app/pb_kits/playbook/pb_text_input/add_on.rb', line 10 def border_css border_toggle = border ? "on" : "off" border_to_change = if alignment == "left" "right" else "left" end "border_#{border_to_change}_#{border_toggle}" end |