Class: Primer::OpenProject::AvatarStack
- Inherits:
-
Beta::AvatarStack
- Object
- ViewComponent::Base
- Component
- Beta::AvatarStack
- Primer::OpenProject::AvatarStack
- Defined in:
- app/components/primer/open_project/avatar_stack.rb
Overview
OpenProject-specific AvatarStack that extends Primer::Beta::AvatarStack to support avatar fallbacks with initials.
Uses a different slot name (avatar_with_fallbacks) to avoid conflicts with the parent’s avatars slot.
Constant Summary
Constants inherited from Beta::AvatarStack
Beta::AvatarStack::ALIGN_DEFAULT, Beta::AvatarStack::ALIGN_OPTIONS, Beta::AvatarStack::BODY_TAG_OPTIONS, Beta::AvatarStack::DEFAULT_BODY_TAG, Beta::AvatarStack::DEFAULT_TAG, Beta::AvatarStack::TAG_OPTIONS
Constants inherited from Component
Component::INVALID_ARIA_LABEL_TAGS
Constants included from Status::Dsl
Constants included from ViewHelper
Constants included from TestSelectorHelper
TestSelectorHelper::TEST_SELECTOR_TAG
Constants included from FetchOrFallbackHelper
FetchOrFallbackHelper::InvalidValueError
Constants included from AttributesHelper
AttributesHelper::PLURAL_ARIA_ATTRIBUTES, AttributesHelper::PLURAL_DATA_ATTRIBUTES
Instance Method Summary collapse
-
#avatars ⇒ Object
Alias avatar_with_fallbacks as avatars for use in the template.
Methods inherited from Beta::AvatarStack
#before_render, #body_component, #initialize, #render?
Methods inherited from Component
Methods included from JoinStyleArgumentsHelper
Methods included from TestSelectorHelper
Methods included from FetchOrFallbackHelper
#fetch_or_fallback, #fetch_or_fallback_boolean, #silence_deprecations?
Methods included from ClassNameHelper
Methods included from AttributesHelper
#aria, #data, #extract_data, #merge_aria, #merge_data, #merge_prefixed_attribute_hashes
Methods included from ExperimentalSlotHelpers
Methods included from ExperimentalRenderHelpers
Constructor Details
This class inherits a constructor from Primer::Beta::AvatarStack
Instance Method Details
#avatars ⇒ Object
Alias avatar_with_fallbacks as avatars for use in the template
18 19 20 |
# File 'app/components/primer/open_project/avatar_stack.rb', line 18 def avatars avatar_with_fallbacks end |