Class: BetterUi::Dropdown::HeaderComponent

Inherits:
ApplicationComponent show all
Defined in:
app/components/better_ui/dropdown/header_component.rb

Constant Summary

Constants inherited from ApplicationComponent

ApplicationComponent::SHADOWS, ApplicationComponent::VARIANTS, ApplicationComponent::VARIANT_BODY_DIVIDE, ApplicationComponent::VARIANT_DIVIDE, ApplicationComponent::VARIANT_HEADER_BG, ApplicationComponent::VARIANT_HEADER_TEXT, ApplicationComponent::VARIANT_HIGHLIGHTED, ApplicationComponent::VARIANT_HOVERABLE, ApplicationComponent::VARIANT_RING, ApplicationComponent::VARIANT_SORT_ICON, ApplicationComponent::VARIANT_STRIPED

Instance Method Summary collapse

Constructor Details

#initialize(text: nil, container_classes: nil) ⇒ HeaderComponent

Returns a new instance of HeaderComponent.



6
7
8
9
# File 'app/components/better_ui/dropdown/header_component.rb', line 6

def initialize(text: nil, container_classes: nil)
  @text = text
  @container_classes = container_classes
end