Sha256: aac43238dc05110d2efddbddf8cf05f2a2f2380bf269bc9e1c7fba0b4e6043e7
Contents?: true
Size: 498 Bytes
Versions: 6
Compression:
Stored size: 498 Bytes
Contents
module Voom module Presenters module DSL module Components class IconToggle < ToggleBase attr_accessor :icon, :on_icon, :selected def initialize(**attribs_, &block) super(type: :icon_toggle, **attribs_, &block) @icon = attribs.delete(:icon) @on_icon = attribs.delete(:on_icon) { @icon } @selected = attribs.delete(:selected) { false } expand! end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems