Sha256: 2519dfc25830ac0d2f942faa02e25b362bb4f5f275995fe369d9c1ca1bef08c2

Contents?: true

Size: 967 Bytes

Versions: 73

Compression:

Stored size: 967 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(TypeaheadField)
        prepend(SelectField)
        prepend(CollectionSelectField)

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

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
playbook_ui-4.6.1 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-4.6.0 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-4.5.2 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-4.5.1 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-4.5.0 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-4.4.1 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-4.4.0 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-4.3.1 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-4.3.0 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-4.2.0 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-4.1.2 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-4.1.1 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-4.1.0 app/pb_kits/playbook/pb_form/form_builder.rb