Sha256: 199be9caab6227e179855ed0d758f7ddec9403a714f644e086dbeacf722bcb28

Contents?: true

Size: 913 Bytes

Versions: 12

Compression:

Stored size: 913 Bytes

Contents

module Coprl
  module Presenters
    module DSL
      module Components
        class Form < EventBase
          include Mixins::Append
          include Mixins::Grids
          include Mixins::TextFields
          include Mixins::DateTimeFields
          include Mixins::Selects
          include Mixins::Toggles
          include Mixins::Buttons
          include Mixins::Attaches
          include Mixins::ExpansionPanels
          include Mixins::Content
          include Mixins::Typography
          include Mixins::FileInputs
          include Mixins::Images
          include Mixins::Tables

          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

12 entries across 12 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 lib/coprl/presenters/dsl/components/form.rb
coprl-3.0.0.beta.11 lib/coprl/presenters/dsl/components/form.rb
coprl-3.0.0.beta.10 lib/coprl/presenters/dsl/components/form.rb
coprl-3.0.0.beta.9 lib/coprl/presenters/dsl/components/form.rb
coprl-3.0.0.beta.8 lib/coprl/presenters/dsl/components/form.rb
coprl-3.0.0.beta.7 lib/coprl/presenters/dsl/components/form.rb
coprl-3.0.0.beta.6 lib/coprl/presenters/dsl/components/form.rb
coprl-3.0.0.beta.5 lib/coprl/presenters/dsl/components/form.rb
coprl-3.0.0.beta.4 lib/coprl/presenters/dsl/components/form.rb
coprl-3.0.0.beta.3 lib/coprl/presenters/dsl/components/form.rb
coprl-3.0.0.beta.2 lib/coprl/presenters/dsl/components/form.rb
coprl-3.0.0.beta.1 lib/coprl/presenters/dsl/components/form.rb