Module: FormtasticRebootstrap::Actions::Base

Included in:
ButtonAction, InputAction, LinkAction
Defined in:
lib/formtastic_rebootstrap/actions/base.rb

Instance Method Summary collapse

Instance Method Details

#default_button_htmlObject

: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 default_button_html
  {
    :accesskey => accesskey,
    :class => wrapper_class.strip,
    :id => wrapper_id
   }
end

#default_wrapper_classesObject

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