Class: Voom::Presenters::DSL::Components::Lists::Header

Inherits:
Line show all
Defined in:
lib/voom/presenters/dsl/components/lists/header.rb

Constant Summary

Constants inherited from Line

Line::CHECKBOX_ATTRIBUTES

Instance Attribute Summary collapse

Attributes inherited from Line

#components, #selectable, #selected

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 inherited from Line

#actions, #avatar, #body, #checkbox, #hidden_field, #icon, #info, #menu, #subtitle, #text

Methods included from Mixins::Dialogs

#dialog

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

Returns a new instance of Header.



9
10
11
12
13
# File 'lib/voom/presenters/dsl/components/lists/header.rb', line 9

def initialize(**attribs_, &block)
  super(type: :header, **attribs_, &block)
  @total_lines = attribs.delete(:total_lines) || 0
  expand!
end

Instance Attribute Details

#total_linesObject

Returns the value of attribute total_lines.



7
8
9
# File 'lib/voom/presenters/dsl/components/lists/header.rb', line 7

def total_lines
  @total_lines
end