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