Class: Yattho::Component
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Yattho::Component
- Includes:
- ViewComponent::PolymorphicSlots, ViewComponent::SlotableV2, Audited::Dsl, ClassNameHelper, FetchOrFallbackHelper, JoinStyleArgumentsHelper, Status::Dsl, TestSelectorHelper, ViewHelper
- Defined in:
- app/components/yattho/component.rb
Overview
:nocov:
Direct Known Subclasses
Alpha::ActionList, Alpha::ActionList::Divider, Alpha::ActionList::Heading, Alpha::ActionList::Item, Alpha::AutoComplete, Alpha::AutoComplete::Item, Alpha::Banner, Alpha::ButtonMarketing, Alpha::Dialog, Alpha::Dialog::Body, Alpha::Dialog::Footer, Alpha::Dialog::Header, Alpha::Dropdown, Alpha::Dropdown::Menu, Alpha::Dropdown::Menu::Item, Alpha::HellipButton, Alpha::HiddenTextExpander, Alpha::Image, Alpha::ImageCrop, Alpha::Layout, Alpha::Layout::Main, Alpha::Layout::Sidebar, Alpha::Menu, Alpha::NavList, Alpha::OcticonSymbols, Alpha::SegmentedControl, Alpha::TabContainer, Alpha::TabNav, Alpha::TabPanels, Alpha::TextField, Alpha::ToggleSwitch, Alpha::Tooltip, Alpha::UnderlineNav, Alpha::UnderlinePanels, BaseComponent, Beta::AutoComplete, Beta::AutoComplete::Item, Beta::Avatar, Beta::AvatarStack, Beta::BaseButton, Beta::Blankslate, Beta::BorderBox, Beta::BorderBox::Header, Beta::Breadcrumbs, Beta::Breadcrumbs::Item, Beta::Button, Beta::ButtonGroup, Beta::ClipboardCopy, Beta::CloseButton, Beta::Counter, Beta::Details, Beta::Flash, Beta::Heading, Beta::IconButton, Beta::Label, Beta::Link, Beta::Markdown, Beta::Octicon, Beta::Popover, Beta::ProgressBar, Beta::RelativeTime, Beta::Spinner, Beta::State, Beta::Subhead, Beta::Text, Beta::TimelineItem, Beta::TimelineItem::Badge, Beta::Truncate, Beta::Truncate::TruncateText, BlankslateComponent, Box, ButtonComponent, ConditionalWrapper, Content, IconButton, LayoutComponent, LocalTime, Navigation::TabComponent, TimeAgoComponent, TimelineItemComponent::BadgeComponent, Tooltip, Truncate
Constant Summary collapse
- INVALID_ARIA_LABEL_TAGS =
[:div, :span, :p].freeze
Constants included from Status::Dsl
Constants included from ViewHelper
Constants included from TestSelectorHelper
TestSelectorHelper::TEST_SELECTOR_TAG
Constants included from FetchOrFallbackHelper
FetchOrFallbackHelper::InvalidValueError
Class Method Summary collapse
Methods included from JoinStyleArgumentsHelper
Methods included from TestSelectorHelper
Methods included from FetchOrFallbackHelper
#fetch_or_fallback, #fetch_or_fallback_boolean
Methods included from ClassNameHelper
Class Method Details
.deprecated? ⇒ Boolean
21 22 23 |
# File 'app/components/yattho/component.rb', line 21 def self.deprecated? status == :deprecated end |
.generate_id ⇒ Object
25 26 27 |
# File 'app/components/yattho/component.rb', line 25 def self.generate_id "#{name.demodulize.underscore.dasherize}-#{SecureRandom.uuid}" end |