Module: FormtasticRebootstrap::Actions::Base
- Included in:
- ButtonAction, InputAction, LinkAction
- Defined in:
- lib/formtastic_rebootstrap/actions/base.rb
Instance Method Summary collapse
-
#default_button_html ⇒ Object
:wrapper_html member :class is prefixed with btn :button_html member :class is all encompassing.
-
#default_wrapper_classes ⇒ Object
Default button class.
-
#wrapper(&block) ⇒ Object
Bootstrap doesn’t have wrappers.
Instance Method Details
#default_button_html ⇒ Object
:wrapper_html member :class is prefixed with btn :button_html member :class is all encompassing
17 18 19 20 21 22 23 |
# File 'lib/formtastic_rebootstrap/actions/base.rb', line 17 def { :accesskey => accesskey, :class => wrapper_class.strip, :id => wrapper_id } end |
#default_wrapper_classes ⇒ Object
Default button class
11 12 13 |
# File 'lib/formtastic_rebootstrap/actions/base.rb', line 11 def default_wrapper_classes ["btn"] end |
#wrapper(&block) ⇒ Object
Bootstrap doesn’t have wrappers.
6 7 8 |
# File 'lib/formtastic_rebootstrap/actions/base.rb', line 6 def wrapper(&block) template.capture(&block) end |