Sha256: 1ad576849bcd6828949a2acf1cc11e7a259b411a3a9612102796b9678811b0c3

Contents?: true

Size: 986 Bytes

Versions: 3

Compression:

Stored size: 986 Bytes

Contents

require_relative 'menu'
require_relative 'mixins/common'
require_relative 'mixins/event'
require_relative 'mixins/attaches'
require_relative 'mixins/text_fields'
require_relative 'mixins/selects'
require_relative 'mixins/snackbars'
require_relative 'mixins/date_time_fields'

module Voom
  module Presenters
    module DSL
      module Components
        class Content < EventBase
          include Mixins::Common
          include Mixins::Attaches
          include Mixins::TextFields
          include Mixins::DateTimeFields
          include Mixins::Selects
          include Mixins::Snackbars

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
voom-presenters-0.1.8 lib/voom/presenters/dsl/components/content.rb
voom-presenters-0.1.7 lib/voom/presenters/dsl/components/content.rb
voom-presenters-0.1.6 lib/voom/presenters/dsl/components/content.rb