Sha256: f801b262e57b207552aa547918f5af1c52b0ed67730ffaea394323cf4b421a83

Contents?: true

Size: 935 Bytes

Versions: 6

Compression:

Stored size: 935 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbForm
    module FormBuilder
      extend ActiveSupport::Concern

      included do
        prepend(FormFieldBuilder.new(:email_field, kit_name: "text_input"))
        prepend(FormFieldBuilder.new(:number_field, kit_name: "text_input"))
        prepend(FormFieldBuilder.new(:search_field, kit_name: "text_input"))
        prepend(FormFieldBuilder.new(:telephone_field, kit_name: "text_input"))
        prepend(FormFieldBuilder.new(:text_field, kit_name: "text_input"))
        prepend(FormFieldBuilder.new(:password_field, kit_name: "text_input"))
        prepend(FormFieldBuilder.new(:url_field, kit_name: "text_input"))
        prepend(FormFieldBuilder.new(:text_area, kit_name: "textarea"))
        prepend(SelectField)
        prepend(CollectionSelectField)

        def actions(&block)
          ActionArea.new(self).wrapper(&block)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
playbook_ui-4.0.1 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-4.0.0 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-3.5.0 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-3.4.0 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-3.3.0 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-3.2.0 app/pb_kits/playbook/pb_form/form_builder.rb