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

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

Instance Method Summary collapse

Instance Method Details

#responseObject



22
23
24
25
26
27
28
29
30
31
32
33
# File 'app/concepts/matestack/ui/bootstrap/components/modal.rb', line 22

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