Sha256: 5ea69de7a87cfbfd023c9ad3da61218a7dcd1255feb61eccd91ed000ee4903fd

Contents?: true

Size: 560 Bytes

Versions: 2

Compression:

Stored size: 560 Bytes

Contents

module FormtasticRebootstrap
  module Actions
    module Base

      # Bootstrap doesn't have wrappers.
      def wrapper(&block)
        template.capture(&block)
      end

      # Default button class
      def default_wrapper_classes
        ["btn"]
      end

      # :wrapper_html member :class is prefixed with btn
      # :button_html member :class is all encompassing
      def default_button_html
        {
          :accesskey => accesskey,
          :class => wrapper_class.strip,
          :id => wrapper_id
         }
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
formtastic_rebootstrap-0.0.2 lib/formtastic_rebootstrap/actions/base.rb
formtastic_rebootstrap-0.0.1 lib/formtastic_rebootstrap/actions/base.rb