Class: Voom::Presenters::DSL::Components::Chip::Icon

Inherits:
IconBase show all
Defined in:
lib/voom/presenters/dsl/components/chip.rb

Instance Attribute Summary

Attributes inherited from IconBase

#color, #hidden, #icon, #position, #size

Attributes inherited from EventBase

#event_parent_id

Attributes included from Mixins::Event

#events

Attributes inherited from Base

#attributes, #css_class, #draggable, #drop_zone, #id, #tag, #type

Instance Method Summary collapse

Methods included from Mixins::Tooltips

#tooltip

Methods included from Mixins::Event

#event

Methods inherited from Base

#expand!

Methods included from Pluggable

#include_plugins, #plugin, #plugin_module

Methods included from Mixins::YieldTo

#yield_to

Methods included from Serializer

#to_hash

Methods included from Lockable

#locked?

Constructor Details

#initialize(**attribs_, &block) ⇒ Icon

Returns a new instance of Icon.



40
41
42
43
44
# File 'lib/voom/presenters/dsl/components/chip.rb', line 40

def initialize(**attribs_, &block)
  super(**attribs_, &block)
  @position = [:left] if position.empty?
  expand!
end