Class: Voom::Presenters::DSL::Components::ImageList::ImageListItem
- Inherits:
-
Voom::Presenters::DSL::Components::Image
- Object
- Base
- EventBase
- Voom::Presenters::DSL::Components::Image
- Voom::Presenters::DSL::Components::ImageList::ImageListItem
- 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
-
#label ⇒ Object
readonly
Returns the value of attribute label.
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
Attributes included from Mixins::Event
Attributes inherited from Base
#attributes, #css_class, #draggable, #drop_zone, #id, #tag, #type
Instance Method Summary collapse
-
#initialize(**attribs_, &block) ⇒ ImageListItem
constructor
A new instance of ImageListItem.
Methods included from Mixins::Tooltips
Methods included from Mixins::Event
Methods inherited from Base
Methods included from Pluggable
#include_plugins, #plugin, #plugin_module
Methods included from Mixins::YieldTo
Methods included from Serializer
Methods included from Lockable
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 } end |
Instance Attribute Details
#label ⇒ Object (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 |