Sha256: c30a1a6dfce5cd81447b70d9836ee710e36613bd480fd9e5ff308d47b3a9fedd

Contents?: true

Size: 549 Bytes

Versions: 8

Compression:

Stored size: 549 Bytes

Contents

require_relative 'toggle_base'

module Voom
  module Presenters
    module DSL
      module Components
        class IconToggle < ToggleBase
          attr_accessor :icon, :selected, :disabled

          def initialize(**attribs_, &block)
            super(type: :icon_toggle, context: context, **attribs_, &block)
            @icon = attribs.delete(:icon)
            @selected = attribs.delete(:selected) || false
            @disabled = attribs.delete(:disabled) || false
            expand!
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
voom-presenters-0.1.7 lib/voom/presenters/dsl/components/icon_toggle.rb
voom-presenters-0.1.6 lib/voom/presenters/dsl/components/icon_toggle.rb
voom-presenters-0.1.5 lib/voom/presenters/dsl/components/icon_toggle.rb
voom-presenters-0.1.4 lib/voom/presenters/dsl/components/icon_toggle.rb
voom-presenters-0.1.3 lib/voom/presenters/dsl/components/icon_toggle.rb
voom-presenters-0.1.2 lib/voom/presenters/dsl/components/icon_toggle.rb
voom-presenters-0.1.1 lib/voom/presenters/dsl/components/icon_toggle.rb
voom-presenters-0.1.0 lib/voom/presenters/dsl/components/icon_toggle.rb