Sha256: b3b8a5c201cd452cb8eb2fc4394e0577f3e5f9a04b99ff4f3f1cba4cbeec6bd7

Contents?: true

Size: 551 Bytes

Versions: 6

Compression:

Stored size: 551 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

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 lib/voom/presenters/dsl/components/icon_toggle.rb
voom-presenters-0.1.12 lib/voom/presenters/dsl/components/icon_toggle.rb
voom-presenters-0.1.11 lib/voom/presenters/dsl/components/icon_toggle.rb
voom-presenters-0.1.10 lib/voom/presenters/dsl/components/icon_toggle.rb
voom-presenters-0.1.9 lib/voom/presenters/dsl/components/icon_toggle.rb
voom-presenters-0.1.8 lib/voom/presenters/dsl/components/icon_toggle.rb