Class: Bs5::ListGroupComponent

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
ViewComponent::SlotableV2
Defined in:
app/components/bs5/list_group_component.rb

Defined Under Namespace

Classes: Item

Constant Summary collapse

CLASS_NAME_BASE =
'list-group'
CLASS_NAME_FLUSH =
"#{CLASS_NAME_BASE}-flush"
CLASS_NAME_HORIZONTAL =
"#{CLASS_NAME_BASE}-horizontal"

Instance Method Summary collapse

Constructor Details

#initialize(flush: false, horizontal: false) ⇒ ListGroupComponent

Returns a new instance of ListGroupComponent.



13
14
15
16
# File 'app/components/bs5/list_group_component.rb', line 13

def initialize(flush: false, horizontal: false)
  @flush = flush
  @horizontal = horizontal
end