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

Inherits:
Component
  • Object
show all
Defined in:
app/concepts/matestack/ui/bootstrap/components/list_group.rb

Instance Method Summary collapse

Instance Method Details

#responseObject



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'app/concepts/matestack/ui/bootstrap/components/list_group.rb', line 9

def response
  if actionable_items?
    div list_group_attributes do
      yield_components unless items
      list_partial if items
    end
  else
    ul list_group_attributes do
      yield_components unless items
      list_partial if items
    end
  end
end