Class: Matestack::Ui::Bootstrap::Components::ListGroup

Inherits:
BaseComponent
  • Object
show all
Defined in:
lib/matestack/ui/bootstrap/components/list_group.rb

Instance Method Summary collapse

Instance Method Details

#responseObject



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/matestack/ui/bootstrap/components/list_group.rb', line 11

def response
  if actionable_items?
    div list_group_attributes do
      yield if block_given? unless context.items
      list_partial if context.items
    end
  else
    ul list_group_attributes do
      yield if block_given? unless context.items
      list_partial if context.items
    end
  end
end