Class: Ariadne::TableNavComponent::BaseRowItem::HeaderRowItem
- Inherits:
-
Ariadne::TableNavComponent::BaseRowItem
- Object
- ViewComponent::Base
- Component
- Ariadne::TableNavComponent
- Ariadne::TableNavComponent::BaseRowItem
- Ariadne::TableNavComponent::BaseRowItem::HeaderRowItem
- Defined in:
- app/components/ariadne/table_nav_component.rb
Overview
This component is part of TableNavComponent and should not be used as a standalone component.
Constant Summary collapse
- DEFAULT_HEADER_ROW_CLASSES =
"ariadne-bg-gray-50 ariadne-text-left"
Constants inherited from Ariadne::TableNavComponent::BaseRowItem
BASE_MAIN_CLASSES, BASE_ROW_CLASSES, BASE_SELECTION_CLASSES, DEFAULT_TAG
Constants inherited from Ariadne::TableNavComponent
Constants inherited from Component
Component::BASE_HIDDEN_CLASS, Component::BASE_MAIN_CLASSES, Component::BASE_WRAPPER_CLASSES, Component::INVALID_ARIA_LABEL_TAGS
Constants included from ActionViewExtensions::FormHelper
ActionViewExtensions::FormHelper::DEFAULT_FORM_CLASSES
Constants included from Status::Dsl
Constants included from ViewHelper
Constants included from FetchOrFallbackHelper
FetchOrFallbackHelper::INTEGER_TYPES, FetchOrFallbackHelper::InvalidValueError, FetchOrFallbackHelper::TRUE_OR_FALSE
Instance Attribute Summary
Attributes inherited from Ariadne::TableNavComponent::BaseRowItem
Instance Method Summary collapse
-
#initialize(classes: "", attributes: {}) ⇒ HeaderRowItem
constructor
A new instance of HeaderRowItem.
Methods inherited from Ariadne::TableNavComponent::BaseRowItem
Methods inherited from Ariadne::TableNavComponent
#has_footer?, #has_header_row?
Methods included from ActionViewExtensions::FormHelper
Methods included from ClassNameHelper
Methods included from LoggerHelper
#logger, #silence_deprecations?, #silence_warnings?
Methods included from FetchOrFallbackHelper
#check_incoming_attribute, #check_incoming_tag, #check_incoming_value, #fetch_or_raise, #fetch_or_raise_boolean, #fetch_or_raise_integer
Constructor Details
#initialize(classes: "", attributes: {}) ⇒ HeaderRowItem
Returns a new instance of HeaderRowItem.
163 164 165 166 167 168 169 170 171 172 |
# File 'app/components/ariadne/table_nav_component.rb', line 163 def initialize(classes: "", attributes: {}) @header = true actual_classes = class_names( DEFAULT_HEADER_ROW_CLASSES, classes, ) super(classes: actual_classes, attributes: attributes) end |