Class: Voom::Presenters::DSL::Components::Lists::Header
- Defined in:
- lib/voom/presenters/dsl/components/lists/header.rb
Constant Summary
Constants inherited from Line
Instance Attribute Summary collapse
-
#total_lines ⇒ Object
Returns the value of attribute total_lines.
Attributes inherited from Line
#components, #selectable, #selected
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) ⇒ Header
constructor
A new instance of Header.
Methods inherited from Line
#actions, #avatar, #body, #checkbox, #hidden_field, #icon, #info, #menu, #subtitle, #text
Methods included from Mixins::Dialogs
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) ⇒ 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 end |
Instance Attribute Details
#total_lines ⇒ Object
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 |