Class: Matestack::Ui::Bootstrap::Components::PageHeading

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

Instance Method Summary collapse

Instance Method Details

#responseObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/matestack/ui/bootstrap/components/page_heading.rb', line 7

def response
  section class: "mb-5" do
    bs_row do
      bs_col do
        div class: "page-heading-heading" do
          heading size: 2 do
            bs_icon name: context.icon, size: "35" if context.icon.present?
            plain context.title
          end
          heading size: 6, class: "text-muted" do
            plain context.subtitle
          end
        end
      end
      bs_col md: 12, xl: 4, class: "text-xl-end mt-3" do
        div class: "page-heading-actions text-xl-end" do
          yield if block_given?
        end
      end
    end
  end
end