Class: Ariadne::TableNavComponent::BaseRowItem::RowItem

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_ROW_CLASSES =
"ariadne-bg-white"
DEFAULT_METADATA_CLASSES =
""

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 collapse

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: {}) ⇒ RowItem

Returns a new instance of RowItem.



145
146
147
148
149
150
151
# File 'app/components/ariadne/table_nav_component.rb', line 145

def initialize(classes: "", attributes: {})
  @header = false

  actual_classes = class_names(DEFAULT_ROW_CLASSES, classes)

  super(classes: actual_classes, attributes: attributes)
end

Instance Attribute Details

#hrefObject (readonly)

Returns the value of attribute href.



143
144
145
# File 'app/components/ariadne/table_nav_component.rb', line 143

def href
  @href
end