Class: Ariadne::TableNavComponent::BaseRowItem::HeaderRowItem

Inherits:
Ariadne::TableNavComponent::BaseRowItem show all
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

DEFAULT_CLASSES, DEFAULT_TAG

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

Status::Dsl::STATUSES

Constants included from ViewHelper

ViewHelper::HELPERS

Constants included from FetchOrFallbackHelper

FetchOrFallbackHelper::INTEGER_TYPES, FetchOrFallbackHelper::InvalidValueError, FetchOrFallbackHelper::TRUE_OR_FALSE

Instance Attribute Summary

Attributes inherited from Ariadne::TableNavComponent::BaseRowItem

#attributes, #classes

Instance Method Summary collapse

Methods inherited from Ariadne::TableNavComponent::BaseRowItem

#call

Methods inherited from Ariadne::TableNavComponent

#has_footer?, #has_header_row?

Methods included from ActionViewExtensions::FormHelper

#ariadne_form_with

Methods included from ClassNameHelper

#class_names

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