Class: Arara::CardPrimaryContentComponent
- Inherits:
-
ActionView::Component::Base
- Object
- ActionView::Component::Base
- Arara::CardPrimaryContentComponent
- Includes:
- BaseComponent
- Defined in:
- app/components/arara/card_primary_content_component.rb
Instance Attribute Summary collapse
-
#tabindex ⇒ Object
readonly
Returns the value of attribute tabindex.
Instance Method Summary collapse
- #default_html_class ⇒ Object
-
#initialize(tabindex: 0, **kw) ⇒ CardPrimaryContentComponent
constructor
A new instance of CardPrimaryContentComponent.
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
#tabindex ⇒ Object (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_class ⇒ Object
14 15 16 |
# File 'app/components/arara/card_primary_content_component.rb', line 14 def default_html_class "mdc-card__primary-action" end |