class Voom::Presenters::DSL::Components::IconToggle

Attributes

icon[RW]
on_icon[RW]
selected[RW]

Public Class Methods

new(**attribs_, &block) click to toggle source
Calls superclass method
# File lib/voom/presenters/dsl/components/icon_toggle.rb, line 8
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