Class: Arara::CardPrimaryContentComponent

Inherits:
ActionView::Component::Base
  • Object
show all
Includes:
BaseComponent
Defined in:
app/components/arara/card_primary_content_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BaseComponent

#default_data_controller, #default_html_tag, #html_class, #html_content, #html_data, #html_options, #html_tag, included

Constructor Details

#initialize(tabindex: 0, **kw) ⇒ CardPrimaryContentComponent

Returns a new instance of CardPrimaryContentComponent.



7
8
9
10
# File 'app/components/arara/card_primary_content_component.rb', line 7

def initialize(tabindex: 0, **kw)
  super(tag: "div", **kw)
  @tabindex = tabindex
end

Instance Attribute Details

#tabindexObject (readonly)

Returns the value of attribute tabindex.



12
13
14
# File 'app/components/arara/card_primary_content_component.rb', line 12

def tabindex
  @tabindex
end

Instance Method Details

#default_html_classObject



14
15
16
# File 'app/components/arara/card_primary_content_component.rb', line 14

def default_html_class
  "mdc-card__primary-action"
end