Sha256: f18d46915468d1cba032a3aafa7d71c6266b72801690363cdc58d39d4301493d

Contents?: true

Size: 619 Bytes

Versions: 14

Compression:

Stored size: 619 Bytes

Contents

module Voom
  module Presenters
    module DSL
      module Components
        class Footer < Base
          attr_accessor :footer_type, :menus

          def initialize(type: nil, **attribs_, &block)
            @footer_type = h(type) ||  :small
            super(type: :footer, **attribs_, &block)
            @menus = []
            expand!
          end

          def menu(title=nil, **attribs, &block)
            return @menus if locked?
            @menus << Menu.new(title,parent: self, context: context,
                               **attribs, &block)
          end

        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 lib/voom/presenters/dsl/components/footer.rb
voom-presenters-0.1.12 lib/voom/presenters/dsl/components/footer.rb
voom-presenters-0.1.11 lib/voom/presenters/dsl/components/footer.rb
voom-presenters-0.1.10 lib/voom/presenters/dsl/components/footer.rb
voom-presenters-0.1.9 lib/voom/presenters/dsl/components/footer.rb
voom-presenters-0.1.8 lib/voom/presenters/dsl/components/footer.rb
voom-presenters-0.1.7 lib/voom/presenters/dsl/components/footer.rb
voom-presenters-0.1.6 lib/voom/presenters/dsl/components/footer.rb
voom-presenters-0.1.5 lib/voom/presenters/dsl/components/footer.rb
voom-presenters-0.1.4 lib/voom/presenters/dsl/components/footer.rb
voom-presenters-0.1.3 lib/voom/presenters/dsl/components/footer.rb
voom-presenters-0.1.2 lib/voom/presenters/dsl/components/footer.rb
voom-presenters-0.1.1 lib/voom/presenters/dsl/components/footer.rb
voom-presenters-0.1.0 lib/voom/presenters/dsl/components/footer.rb