Class: LocoMotion::BasicComponent
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- LocoMotion::BasicComponent
- Defined in:
- lib/loco_motion/basic_component.rb
Overview
The BasicComponent class is used for all slots that don't provide a component so that users can pass in all of the same CSS and HTML options that a standard component would have.
Direct Known Subclasses
Daisy::Actions::DropdownComponent::ItemComponent, Daisy::Actions::SwapComponent::SwapIndeterminate, Daisy::Actions::SwapComponent::SwapOff, Daisy::Actions::SwapComponent::SwapOn, Daisy::DataDisplay::AccordionComponent::AccordionSectionComponent, Daisy::DataDisplay::CarouselComponent::ItemComponent, Daisy::DataDisplay::DiffComponent::ItemComponent, Daisy::DataDisplay::TableComponent::BodyColumnComponent, Daisy::DataDisplay::TableComponent::BodyComponent, Daisy::DataDisplay::TableComponent::BodyRowComponent, Daisy::DataDisplay::TableComponent::HeadColumnComponent, Daisy::DataDisplay::TableComponent::HeadComponent, Daisy::DataDisplay::TableComponent::SectionComponent, Daisy::DataDisplay::TextRotateComponent::ItemComponent, Daisy::DataInput::RatingComponent::RatingItemComponent, Daisy::DataInput::SelectComponent::SelectOptionComponent, Daisy::Layout::HoverGalleryComponent::ImageComponent, Daisy::Navigation::MegamenuComponent::ItemComponent, Daisy::Navigation::TabsComponent::TabComponent
Class Method Summary collapse
-
.name ⇒ Object
Hard-coded so ViewComponent's template/sidecar lookup keeps resolving to BasicComponent's own view when this class is used as the default component for slots that don't specify one.
Instance Method Summary collapse
-
#call ⇒ Object
Renders the component's root part, yielding the block content into it.
Class Method Details
.name ⇒ Object
Hard-coded so ViewComponent's template/sidecar lookup keeps resolving to BasicComponent's own view when this class is used as the default component for slots that don't specify one.
20 21 22 |
# File 'lib/loco_motion/basic_component.rb', line 20 def self.name "BasicComponent" end |
Instance Method Details
#call ⇒ Object
Renders the component's root part, yielding the block content into it.
11 12 13 14 15 |
# File 'lib/loco_motion/basic_component.rb', line 11 def call part(:component) do content end end |