Class: Voom::Presenters::DSL::Components::ImageList::ImageListItem

Inherits:
Voom::Presenters::DSL::Components::Image show all
Defined in:
lib/voom/presenters/dsl/components/image_list.rb

Constant Summary

Constants inherited from Voom::Presenters::DSL::Components::Image

Voom::Presenters::DSL::Components::Image::DEFAULT_POSITION, Voom::Presenters::DSL::Components::Image::VALID_FIT_TYPES

Instance Attribute Summary collapse

Attributes inherited from Voom::Presenters::DSL::Components::Image

#border, #border_color, #border_radius, #description, #fit, #height, #image, #max_height, #max_width, #min_height, #min_width, #position, #url, #width

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) ⇒ ImageListItem

Returns a new instance of ImageListItem.



31
32
33
34
35
# File 'lib/voom/presenters/dsl/components/image_list.rb', line 31

def initialize(**attribs_, &block)
  super(type: :image_list_item, **attribs_, &block)
  @label = attribs_.delete(:label){ nil }
  expand!
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



29
30
31
# File 'lib/voom/presenters/dsl/components/image_list.rb', line 29

def label
  @label
end