Sha256: 5ac4f5a57ca63e92c3f568cb4180d0bfe03015f91988a924d8db719f2146c468

Contents?: true

Size: 643 Bytes

Versions: 6

Compression:

Stored size: 643 Bytes

Contents

module Voom
  module Presenters
    module DSL
      module Components
        class IconBase < EventBase
          include Mixins::Tooltips
          attr_reader :icon, :color, :size, :position, :hidden

          def initialize(**attribs_, &block)
            super(type: :icon,
                  **attribs_, &block)
            @icon     = attribs.delete(:icon)
            @color    = attribs.delete(:color)
            @size     = attribs.delete(:size){ :default }
            @position = Array(attribs.delete(:position)).compact
            @hidden = attribs.delete(:hidden) {false}
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 lib/voom/presenters/dsl/components/icon_base.rb
voom-presenters-2.1.0 lib/voom/presenters/dsl/components/icon_base.rb
voom-presenters-2.0.3 lib/voom/presenters/dsl/components/icon_base.rb
voom-presenters-2.0.2 lib/voom/presenters/dsl/components/icon_base.rb
voom-presenters-2.0.1 lib/voom/presenters/dsl/components/icon_base.rb
voom-presenters-2.0.0 lib/voom/presenters/dsl/components/icon_base.rb