Sha256: ab93468ac813bbecb0da2d12045a4bd649d861dbde033172d8dccfaa5ff01989
Contents?: true
Size: 728 Bytes
Versions: 2
Compression:
Stored size: 728 Bytes
Contents
# Use this setup block to configure all options available in SimpleForm. SimpleForm.setup do |config| config.wrappers :foundation, class: :input, hint_class: :field_with_hint, error_class: :error do |b| b.use :html5 b.use :placeholder b.optional :maxlength b.optional :pattern b.optional :min_max b.optional :readonly b.use :label_input b.use :error, wrap_with: { tag: :small } # Uncomment the following line to enable hints. The line is commented out by default since Foundation # does't provide styles for hints. You will need to provide your own CSS styles for hints. # b.use :hint, wrap_with: { tag: :span, class: :hint } end config.form_class = 'simple_form custom' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
manage-1.3.1 | config/initializers/simple_form_foundation.rb |
manage-1.3.0 | config/initializers/simple_form_foundation.rb |