Sha256: 55f4d45fec9cc0f1c75a6ace2cc7687cbf153d75ade78933bb93a8774cab5212

Contents?: true

Size: 1.14 KB

Versions: 5

Compression:

Stored size: 1.14 KB

Contents

require_relative 'hidden_field'
require_relative 'text_field'
require_relative 'text_area'
require_relative 'mixins/event'
require_relative 'mixins/grids'
require_relative 'mixins/append'
require_relative 'mixins/text_fields'
require_relative 'mixins/selects'
require_relative 'mixins/buttons'
require_relative 'mixins/toggles'
require_relative 'mixins/attaches'
require_relative 'mixins/expansion_panels'
require_relative 'mixins/content'

module Voom
  module Presenters
    module DSL
      module Components
        class Form < EventBase
          include Mixins::Append
          include Mixins::Grids
          include Mixins::TextFields
          include Mixins::Selects
          include Mixins::Toggles
          include Mixins::Buttons
          include Mixins::Attaches
          include Mixins::ExpansionPanels
          include Mixins::Content

          attr_reader :components, :shows_errors

          def initialize(**attribs_, &block)
            super(type: :form, **attribs_, &block)
            @shows_errors = attribs.delete(:shows_errors){true}
            @components = []
            expand!
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
voom-presenters-0.1.4 lib/voom/presenters/dsl/components/form.rb
voom-presenters-0.1.3 lib/voom/presenters/dsl/components/form.rb
voom-presenters-0.1.2 lib/voom/presenters/dsl/components/form.rb
voom-presenters-0.1.1 lib/voom/presenters/dsl/components/form.rb
voom-presenters-0.1.0 lib/voom/presenters/dsl/components/form.rb