Sha256: 0e7849cecbc28111967eb3c12b75eeb58c65ed419d3bd36a08c9afec9c4583d2
Contents?: true
Size: 763 Bytes
Versions: 165
Compression:
Stored size: 763 Bytes
Contents
# frozen_string_literal: true SimpleForm.setup do |config| config.wrappers :default, class: :input, hint_class: :field_with_hint, error_class: :field_with_errors 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 :hint, wrap_with: { tag: :span, class: :hint } b.use :error, wrap_with: { tag: :span, class: :error } end config.default_wrapper = :default config.boolean_style = :nested config.button_class = 'btn' config.error_notification_tag = :div config.error_notification_class = 'error_notification' config.browser_validations = false config.boolean_label_class = 'checkbox' end
Version data entries
165 entries across 165 versions & 3 rubygems