Class: Matestack::Ui::Bootstrap::Components::Modal

Inherits:
BaseVueJsComponent show all
Defined in:
lib/matestack/ui/bootstrap/components/modal.rb

Instance Method Summary collapse

Instance Method Details

#responseObject



25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/matestack/ui/bootstrap/components/modal.rb', line 25

def response
  div modal_attributes do
    div class: dialog_classes do
      div class: "modal-content" do
        header_partial if context.header || (slots && slots[:header])
        body_partial if context.body || slots && slots[:body]
        footer_partial if context.footer || (slots && slots[:footer])
        yield if block_given?
      end
    end
  end
end